Skip to content

Commit

Permalink
Qt/input: reset pads also when the pad settings dialog was cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed May 8, 2019
1 parent e195761 commit f64c67c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/rpcs3qt/main_window.cpp
Expand Up @@ -1282,7 +1282,7 @@ void main_window::CreateConnects()

auto openPadSettings = [this]
{
auto resetPadHandlers = [this]
auto resetPadHandlers = [this](int/* result*/)
{
if (Emu.IsStopped())
{
Expand All @@ -1295,7 +1295,7 @@ void main_window::CreateConnects()
Emu.GetCallbacks().enable_pads(false);
}
pad_settings_dialog dlg(this);
connect(&dlg, &QDialog::accepted, resetPadHandlers);
connect(&dlg, &QDialog::finished, resetPadHandlers);
dlg.exec();
if (!Emu.IsStopped())
{
Expand Down

0 comments on commit f64c67c

Please sign in to comment.