comparison main/MainWindow.cpp @ 417:a0d162a3f3a7 templating

Use ReplaceSession mode where appropriate in place of ReplaceMainModel (#148)
author Chris Cannam
date Wed, 27 Apr 2011 14:46:35 +0100
parents aa8117d79702
children 07fbfba541b0
comparison
equal deleted inserted replaced
416:9f25742b5953 417:a0d162a3f3a7
2147 MainWindow::importAudio() 2147 MainWindow::importAudio()
2148 { 2148 {
2149 QString path = getOpenFileName(FileFinder::AudioFile); 2149 QString path = getOpenFileName(FileFinder::AudioFile);
2150 2150
2151 if (path != "") { 2151 if (path != "") {
2152 if (openAudio(path, ReplaceMainModel) == FileOpenFailed) { 2152 if (openAudio(path, ReplaceSession) == FileOpenFailed) {
2153 emit hideSplash(); 2153 emit hideSplash();
2154 QMessageBox::critical(this, tr("Failed to open file"), 2154 QMessageBox::critical(this, tr("Failed to open file"),
2155 tr("<b>File open failed</b><p>Audio file \"%1\" could not be opened").arg(path)); 2155 tr("<b>File open failed</b><p>Audio file \"%1\" could not be opened").arg(path));
2156 } 2156 }
2157 } 2157 }