# HG changeset patch # User Chris Cannam # Date 1303999952 -3600 # Node ID 67941a9bb202bfe5461633b7a0f27ac027a1c570 # Parent af775c7b929bbad8f9cea468ddefe7c3b7e38160 Make openSomething always use ReplaceMainModel rather than AskUser (for #150) diff -r af775c7b929b -r 67941a9bb202 main/MainWindow.cpp --- 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();