Qt: Fix spurious connect error
Vicki Pfau vi@endrift.com
Tue, 12 Mar 2019 19:56:14 -0700
1 files changed,
6 insertions(+),
6 deletions(-)
M
src/platform/qt/ConfigController.cpp
→
src/platform/qt/ConfigController.cpp
@@ -33,10 +33,10 @@ action->setCheckable(true);
QObject::connect(action, &QAction::triggered, [this, value]() { emit valueChanged(value); }); - QObject::connect(parent, &QAction::destroyed, [this, action, value]() { - m_actions.removeAll(qMakePair(action, value)); - }); if (parent) { + QObject::connect(parent, &QAction::destroyed, [this, action, value]() { + m_actions.removeAll(qMakePair(action, value)); + }); parent->addAction(action); } m_actions.append(qMakePair(action, value));@@ -53,10 +53,10 @@ action->setCheckable(true);
QObject::connect(action, &QAction::triggered, [this, action]() { emit valueChanged(action->isChecked()); }); - QObject::connect(parent, &QAction::destroyed, [this, action]() { - m_actions.removeAll(qMakePair(action, 1)); - }); if (parent) { + QObject::connect(parent, &QAction::destroyed, [this, action]() { + m_actions.removeAll(qMakePair(action, 1)); + }); parent->addAction(action); } m_actions.append(qMakePair(action, 1));