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>
This commit is contained in:
Alessandro Portale
2012-01-17 11:11:12 +01:00
committed by Thomas Hartmann
parent fc2d8deae3
commit fe068869b9

View File

@@ -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);