]> Shamusworld >> Repos - wozmaker/blobdiff - src/mainwin.cpp
Move saving code to fileio, add WOZ2 support, misc. DSP tweaks.
[wozmaker] / src / mainwin.cpp
index 528924d79743851a616124d0618bd2fa07ab7703..e98031dbc0919565b30781f4c70c688ff9b9f25b 100644 (file)
@@ -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