From 457addbf4011342a0452fc6c26756c56c44e60b3 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 6 May 2009 09:17:16 +0200
Subject: [PATCH] debugger: imporev grey-out logic on the dumper settings page

---
 src/plugins/debugger/debuggerplugin.cpp  | 8 +++++---
 src/plugins/debugger/dumperoptionpage.ui | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index cbb8a160cab..01d882dba00 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -368,6 +368,7 @@ QWidget *DebuggingHelperOptionPage::createPage(QWidget *parent)
     mdebug->addAction(cmd);
 #endif
 #endif
+    updateState();
 
     return w;
 }
@@ -376,9 +377,10 @@ void DebuggingHelperOptionPage::updateState()
 {
     m_ui.checkBoxUseCustomDebuggingHelperLocation->setEnabled(
         m_ui.checkBoxUseDebuggingHelpers->isChecked());
-    m_ui.dumperLocationChooser->setEnabled(
-        m_ui.checkBoxUseDebuggingHelpers->isChecked()
-            && m_ui.checkBoxUseCustomDebuggingHelperLocation->isChecked());
+    bool locationEnabled = m_ui.checkBoxUseDebuggingHelpers->isChecked()
+         && m_ui.checkBoxUseCustomDebuggingHelperLocation->isChecked();
+    m_ui.dumperLocationChooser->setEnabled(locationEnabled);
+    m_ui.dumperLocationLabel->setEnabled(locationEnabled);
 }
 
 } // namespace Internal
diff --git a/src/plugins/debugger/dumperoptionpage.ui b/src/plugins/debugger/dumperoptionpage.ui
index dc11cfac9d8..0ff6ddc6c2d 100644
--- a/src/plugins/debugger/dumperoptionpage.ui
+++ b/src/plugins/debugger/dumperoptionpage.ui
@@ -73,7 +73,7 @@
       </spacer>
      </item>
      <item>
-      <widget class="QLabel" name="labelDebuggingHelperLocation">
+      <widget class="QLabel" name="dumperLocationLabel">
        <property name="text">
         <string>Location: </string>
        </property>
-- 
GitLab