diff options
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MenuBar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp index 2b8c5bd9d9..790e19f8d3 100644 --- a/Source/Core/DolphinQt/MenuBar.cpp +++ b/Source/Core/DolphinQt/MenuBar.cpp @@ -86,7 +86,7 @@ MenuBar::MenuBar(QWidget* parent) : QMenuBar(parent) AddHelpMenu(); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, - [=](Core::State state) { OnEmulationStateChanged(state); }); + [=, this](Core::State state) { OnEmulationStateChanged(state); }); connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] { OnEmulationStateChanged(Core::GetState()); }); @@ -339,7 +339,7 @@ void MenuBar::AddStateLoadMenu(QMenu* emu_menu) { QAction* action = m_state_load_slots_menu->addAction(QString{}); - connect(action, &QAction::triggered, this, [=]() { emit StateLoadSlotAt(i); }); + connect(action, &QAction::triggered, this, [=, this]() { emit StateLoadSlotAt(i); }); } } @@ -356,7 +356,7 @@ void MenuBar::AddStateSaveMenu(QMenu* emu_menu) { QAction* action = m_state_save_slots_menu->addAction(QString{}); - connect(action, &QAction::triggered, this, [=]() { emit StateSaveSlotAt(i); }); + connect(action, &QAction::triggered, this, [=, this]() { emit StateSaveSlotAt(i); }); } } @@ -373,7 +373,7 @@ void MenuBar::AddStateSlotMenu(QMenu* emu_menu) if (Settings::Instance().GetStateSlot() == i) action->setChecked(true); - connect(action, &QAction::triggered, this, [=]() { emit SetStateSlot(i); }); + connect(action, &QAction::triggered, this, [=, this]() { emit SetStateSlot(i); }); } } |
