Still start up in welcome tab initially and if it was the previous tab

Amendment to fe068869b9

Task-Number: QTCREATORBUG-6803
Change-Id: Ibf93ff87fc535133b87d8fdc51c2bce4da77ab76
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
Eike Ziller
2012-01-18 10:49:46 +01:00
parent 841d5a9939
commit e583422cbf

View File

@@ -197,7 +197,8 @@ void WelcomeMode::initPlugins()
setActivePlugin(settings->value(QLatin1String(currentPageSettingsKeyC)).toInt());
// TODO: re-enable reading from Settings when possible. See QTCREATORBUG-6803
setActivePlugin(1);
if (activePlugin() > 1)
setActivePlugin(1);
QDeclarativeContext *ctx = m_welcomePage->rootContext();
ctx->setContextProperty(QLatin1String("welcomeMode"), this);