all repos — mgba @ 85a3c6f00e4bb0b347b8ebeb4e0ca0843d7816ec

mGBA Game Boy Advance Emulator

Qt: Fix spurious connect error
Vicki Pfau vi@endrift.com
Tue, 12 Mar 2019 19:56:14 -0700
commit

85a3c6f00e4bb0b347b8ebeb4e0ca0843d7816ec

parent

03163b8497f27d99dd11a86d35fb4231797878f4

1 files changed, 6 insertions(+), 6 deletions(-)

jump to
M src/platform/qt/ConfigController.cppsrc/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));