changeset 419:67941a9bb202 feature_150_menu_arrangement

Make openSomething always use ReplaceMainModel rather than AskUser (for #150)
author Chris Cannam
date Thu, 28 Apr 2011 15:12:32 +0100
parents af775c7b929b
children 5fdd59f8bff2
files main/MainWindow.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Thu Apr 28 15:08:38 2011 +0100
+++ b/main/MainWindow.cpp	Thu Apr 28 15:12:32 2011 +0100
@@ -2677,7 +2677,7 @@
 
     if (path.isEmpty()) return;
 
-    FileOpenStatus status = open(path, AskUser);
+    FileOpenStatus status = open(path, ReplaceMainModel);
 
     if (status == FileOpenFailed) {
         emit hideSplash();
@@ -2709,7 +2709,7 @@
 
     if (text.isEmpty()) return;
 
-    FileOpenStatus status = open(text);
+    FileOpenStatus status = open(text, AskUser);
 
     if (status == FileOpenFailed) {
         emit hideSplash();
@@ -2737,7 +2737,7 @@
     QString path = action->text();
     if (path == "") return;
 
-    FileOpenStatus status = open(path);
+    FileOpenStatus status = open(path, ReplaceMainModel);
 
     if (status == FileOpenFailed) {
         emit hideSplash();