From 1825d14a825e1cb71621b3bab3a90c95197fd8fa Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Fri, 24 Sep 2010 12:51:58 +0200
Subject: [PATCH] Fix GUI application opening UI file in Edit mode.

Fix Basefilewizard to use ModeSwitch flag.
---
 src/plugins/coreplugin/basefilewizard.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/coreplugin/basefilewizard.cpp b/src/plugins/coreplugin/basefilewizard.cpp
index 5547b8ed5d6..054e560bd8a 100644
--- a/src/plugins/coreplugin/basefilewizard.cpp
+++ b/src/plugins/coreplugin/basefilewizard.cpp
@@ -626,7 +626,7 @@ bool BaseFileWizard::postGenerateOpenEditors(const GeneratedFiles &l, QString *e
     Core::EditorManager *em = Core::EditorManager::instance();
     foreach(const Core::GeneratedFile &file, l) {
         if (file.attributes() & Core::GeneratedFile::OpenEditorAttribute) {
-            if (!em->openEditor(file.path(), file.editorId())) {
+            if (!em->openEditor(file.path(), file.editorId(), Core::EditorManager::ModeSwitch )) {
                 if (errorMessage)
                     *errorMessage = tr("Failed to open an editor for '%1'.").arg(file.path());
                 return false;
-- 
GitLab