aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2017-09-30 07:12:57 +0200
committerTobias Hunger <[email protected]>2017-10-04 09:35:06 +0000
commitc330cf067959b1919fd2d75a5e3797e0e64cc9fc (patch)
tree7ccfef4b8841efde06cdffce7708c8f4e0ec156b /src/plugins/debugger/debuggerplugin.cpp
parent7c3ea5a78c30c90d6ce250aa312a2cb6cc587901 (diff)
Replace manual signal blocking/unblocking with QSignalBlocker
Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 5e378ac20c0..6e3e6bdd61e 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -645,12 +645,11 @@ public:
void setThreadBoxContents(const QStringList &list, int index)
{
- const bool state = m_threadBox->blockSignals(true);
+ QSignalBlocker blocker(m_threadBox);
m_threadBox->clear();
foreach (const QString &item, list)
m_threadBox->addItem(item);
m_threadBox->setCurrentIndex(index);
- m_threadBox->blockSignals(state);
}
RunControl *attachToRunningProcess(Kit *kit, DeviceProcessItem process, bool contAfterAttach);