diff 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
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Apr 27 11:33:28 2011 +0100
+++ b/main/MainWindow.cpp	Wed Apr 27 14:46:35 2011 +0100
@@ -2149,7 +2149,7 @@
     QString path = getOpenFileName(FileFinder::AudioFile);
 
     if (path != "") {
-	if (openAudio(path, ReplaceMainModel) == FileOpenFailed) {
+	if (openAudio(path, ReplaceSession) == FileOpenFailed) {
             emit hideSplash();
 	    QMessageBox::critical(this, tr("Failed to open file"),
 				  tr("<b>File open failed</b><p>Audio file \"%1\" could not be opened").arg(path));