Never nag again about Qt Quick Visual Designer after pressing X, or enabling it once.

Reviewed-by: kkoehne
(cherry picked from commit 854309267d)
This commit is contained in:
con
2010-04-16 15:17:31 +02:00
parent 24f4b681c5
commit 7f1d5a7322

View File

@@ -176,6 +176,7 @@ void QmlJSEditorFactory::activateQmlDesigner()
disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)), disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
this, SLOT(updateEditorInfoBar(Core::IEditor*))); this, SLOT(updateEditorInfoBar(Core::IEditor*)));
Core::EditorManager::instance()->hideEditorInfoBar(QMLDESIGNER_INFO_BAR); Core::EditorManager::instance()->hideEditorInfoBar(QMLDESIGNER_INFO_BAR);
neverAskAgainAboutQmlDesigner();
return; return;
} }
} }
@@ -188,6 +189,7 @@ void QmlJSEditorFactory::neverAskAgainAboutQmlDesigner()
settings->beginGroup(QLatin1String(KEY_QMLGROUP)); settings->beginGroup(QLatin1String(KEY_QMLGROUP));
settings->setValue(QLatin1String(KEY_NAGABOUTDESIGNER), false); settings->setValue(QLatin1String(KEY_NAGABOUTDESIGNER), false);
settings->endGroup(); settings->endGroup();
settings->sync();
disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)), disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
this, SLOT(updateEditorInfoBar(Core::IEditor*))); this, SLOT(updateEditorInfoBar(Core::IEditor*)));
} }