diff main/main.cpp @ 270:a0d3b334e7a9

* Merge revisions 1131 to 1201 from sv-rdf-import branch
author Chris Cannam
date Thu, 18 Sep 2008 12:33:30 +0000
parents c452d8a7b770
children eed95bb2f597
line wrap: on
line diff
--- a/main/main.cpp	Thu Sep 18 12:09:32 2008 +0000
+++ b/main/main.cpp	Thu Sep 18 12:33:30 2008 +0000
@@ -358,9 +358,15 @@
             }
         }
         if (status == MainWindow::FileOpenFailed) {
+            splash.hide();
 	    QMessageBox::critical
                 (gui, QMessageBox::tr("Failed to open file"),
                  QMessageBox::tr("File or URL \"%1\" could not be opened").arg(path));
+        } else if (status == MainWindow::FileOpenWrongMode) {
+            splash.hide();
+            QMessageBox::critical
+                (gui, QMessageBox::tr("Failed to open file"),
+                 QMessageBox::tr("<b>Audio required</b><p>Please load at least one audio file before importing annotation data"));
         }
     }