forked from qt-creator/qt-creator
Replace manual signal blocking/unblocking with QSignalBlocker
Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user