From 854309267d153ed52e6866e8e4a6e91676c8a8ce Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Fri, 16 Apr 2010 15:17:31 +0200
Subject: [PATCH] Never nag again about Qt Quick Visual Designer after pressing
 X, or enabling it once.

Reviewed-by: kkoehne
---
 src/plugins/qmljseditor/qmljseditorfactory.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/qmljseditor/qmljseditorfactory.cpp b/src/plugins/qmljseditor/qmljseditorfactory.cpp
index 99bea71fb0e..61d30e9247e 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*)));
 }
-- 
GitLab