diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-07-05 10:22:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-07-05 10:24:19 +0200 |
commit | 82c10d493e93b98a3b9878d3e008e3d6be9459ef (patch) | |
tree | 6233ec88594eae0bee65d4dad5bbe29ed42a90f8 /gui/settings.cpp | |
parent | 6e86249bd8cc6d707756ef79ac9d02c429a2db06 (diff) |
gui: fix process detector not reverting on cancel
Issue: #967
Diffstat (limited to 'gui/settings.cpp')
-rw-r--r-- | gui/settings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/settings.cpp b/gui/settings.cpp index 230c4410..3851f0c2 100644 --- a/gui/settings.cpp +++ b/gui/settings.cpp @@ -234,6 +234,8 @@ void options_dialog::doOK() void options_dialog::doCancel() { + ui.game_detector->revert(); + if (isHidden()) // close() can return true twice in a row it seems return; hide(); @@ -241,7 +243,6 @@ void options_dialog::doCancel() return; main.b->reload(); - ui.game_detector->revert(); emit closing(); } |