From fe068869b946660f57ff01b19fa733c2c36a899a Mon Sep 17 00:00:00 2001
From: Alessandro Portale <alessandro.portale@nokia.com>
Date: Tue, 17 Jan 2012 11:11:12 +0100
Subject: [PATCH] Workaround QtDeclarative crash QTBUG-23445

Just hardcode the initial WelcomeTab to 1

Task-Number: QTCREATORBUG-6803

Change-Id: I735d18dd3abb55468b1afdae9785f74a4b522345
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
---
 src/plugins/welcome/welcomeplugin.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp
index f2221b27ca0..529dae017c9 100644
--- a/src/plugins/welcome/welcomeplugin.cpp
+++ b/src/plugins/welcome/welcomeplugin.cpp
@@ -215,6 +215,9 @@ void WelcomeMode::initPlugins()
     QSettings *settings = Core::ICore::instance()->settings();
     setActivePlugin(settings->value(QLatin1String(currentPageSettingsKeyC)).toInt());
 
+    // TODO: re-enable reading from Settings when possible. See QTCREATORBUG-6803
+    setActivePlugin(1);
+
     QDeclarativeContext *ctx = m_welcomePage->rootContext();
     ctx->setContextProperty(QLatin1String("welcomeMode"), this);
 
-- 
GitLab