From b410ddc4bdc080ae2f9ad55223c840e9d866281d Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Fri, 10 Jul 2009 14:38:36 +0200
Subject: [PATCH] debugger: hopefully _finally_ fix the "vanishing helper
 checkmark" problem

---
 src/plugins/debugger/debuggerplugin.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 3e210ddb5ef..904e548188b 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -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());
-- 
GitLab