OSDN Git Service

debugger: hopefully _finally_ fix the "vanishing helper checkmark" problem v1.2.1
authorhjk <qtc-committer@nokia.com>
Fri, 10 Jul 2009 12:38:36 +0000 (14:38 +0200)
committercon <qtc-committer@nokia.com>
Fri, 10 Jul 2009 12:38:08 +0000 (14:38 +0200)
(cherry picked from commit b410ddc4bdc080ae2f9ad55223c840e9d866281d)

src/plugins/debugger/debuggerplugin.cpp

index 5b4254b..2ea766b 100644 (file)
@@ -355,17 +355,19 @@ QWidget *DebuggingHelperOptionPage::createPage(QWidget *parent)
         this, SLOT(updateState()));
 
     m_group.clear();
-#ifdef QT_DEBUG
     m_group.insert(theDebuggerAction(UseDebuggingHelpers),
         m_ui.checkBoxUseDebuggingHelpers);
-#endif
     m_group.insert(theDebuggerAction(UseCustomDebuggingHelperLocation),
         m_ui.checkBoxUseCustomDebuggingHelperLocation);
     m_group.insert(theDebuggerAction(CustomDebuggingHelperLocation),
         m_ui.dumperLocationChooser);
 
+#ifdef QT_DEBUG
     m_group.insert(theDebuggerAction(DebugDebuggingHelpers),
         m_ui.checkBoxDebugDebuggingHelpers);
+#else
+    m_ui.checkBoxDebugDebuggingHelpers->hide();
+#endif
 
     m_ui.dumperLocationChooser->
         setEnabled(theDebuggerAction(UseCustomDebuggingHelperLocation)->value().toBool());