diff options
author | con <qtc-committer@nokia.com> | 2010-04-16 15:17:31 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-04-16 17:02:47 +0200 |
commit | 7f1d5a7322d22673a2f4704a42870d914fda2b82 (patch) | |
tree | 45b996c246caa2b1816e668e15aa2b36b99f0d54 | |
parent | 24f4b681c585f97b9742c54f3c442cfd913b13b8 (diff) | |
download | qt-creator-7f1d5a7322d22673a2f4704a42870d914fda2b82.tar.gz |
Never nag again about Qt Quick Visual Designer after pressing X, or enabling it once.
Reviewed-by: kkoehne
(cherry picked from commit 854309267d153ed52e6866e8e4a6e91676c8a8ce)
-rw-r--r-- | src/plugins/qmljseditor/qmljseditorfactory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/qmljseditorfactory.cpp b/src/plugins/qmljseditor/qmljseditorfactory.cpp index 99bea71fb0..61d30e9247 100644 --- a/src/plugins/qmljseditor/qmljseditorfactory.cpp +++ b/src/plugins/qmljseditor/qmljseditorfactory.cpp @@ -176,6 +176,7 @@ void QmlJSEditorFactory::activateQmlDesigner() disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)), this, SLOT(updateEditorInfoBar(Core::IEditor*))); Core::EditorManager::instance()->hideEditorInfoBar(QMLDESIGNER_INFO_BAR); + neverAskAgainAboutQmlDesigner(); return; } } @@ -188,6 +189,7 @@ void QmlJSEditorFactory::neverAskAgainAboutQmlDesigner() settings->beginGroup(QLatin1String(KEY_QMLGROUP)); settings->setValue(QLatin1String(KEY_NAGABOUTDESIGNER), false); settings->endGroup(); + settings->sync(); disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)), this, SLOT(updateEditorInfoBar(Core::IEditor*))); } |