comparison 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
comparison
equal deleted inserted replaced
269:20ebdbf8f959 270:a0d3b334e7a9
356 status = gui->open(path, MainWindow::CreateAdditionalModel); 356 status = gui->open(path, MainWindow::CreateAdditionalModel);
357 } 357 }
358 } 358 }
359 } 359 }
360 if (status == MainWindow::FileOpenFailed) { 360 if (status == MainWindow::FileOpenFailed) {
361 splash.hide();
361 QMessageBox::critical 362 QMessageBox::critical
362 (gui, QMessageBox::tr("Failed to open file"), 363 (gui, QMessageBox::tr("Failed to open file"),
363 QMessageBox::tr("File or URL \"%1\" could not be opened").arg(path)); 364 QMessageBox::tr("File or URL \"%1\" could not be opened").arg(path));
365 } else if (status == MainWindow::FileOpenWrongMode) {
366 splash.hide();
367 QMessageBox::critical
368 (gui, QMessageBox::tr("Failed to open file"),
369 QMessageBox::tr("<b>Audio required</b><p>Please load at least one audio file before importing annotation data"));
364 } 370 }
365 } 371 }
366 372
367 #ifdef HAVE_FFTW3F 373 #ifdef HAVE_FFTW3F
368 settings.beginGroup("FFTWisdom"); 374 settings.beginGroup("FFTWisdom");