X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmainwin.cpp;fp=src%2Fmainwin.cpp;h=e98031dbc0919565b30781f4c70c688ff9b9f25b;hb=98e7923e3e81d05395dbadf4c4f2fba137feeff1;hp=528924d79743851a616124d0618bd2fa07ab7703;hpb=5e24dd2c9ee075606fcea37770c141528ab96fc6;p=wozmaker diff --git a/src/mainwin.cpp b/src/mainwin.cpp index 528924d..e98031d 100644 --- a/src/mainwin.cpp +++ b/src/mainwin.cpp @@ -181,8 +181,11 @@ void MainWin::HandleLoadFile(void) lastDir = QFileInfo(filename).path(); - if (!LoadA2R(filename)) + if (!LoadA2R(filename.toUtf8().data())) + { + QMessageBox::critical(this, "Bad A2R file", "It may have an .a2r extension, but it isn't a valid A2R file."); return; + } Global::trackNum = 0; mainWidget->wfWidget->HandleUpdate(); @@ -200,6 +203,7 @@ void MainWin::AboutWozMaker(void) } +#if 0 bool MainWin::LoadA2R(const QString filename) { /* @@ -333,4 +337,5 @@ Really, this crap should go into fileio.cpp. !!! FIX !!! return true; } +#endif