summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/curve-config.h1
-rw-r--r--facetracknoir/options-dialog.cpp1
-rw-r--r--facetracknoir/options-dialog.hpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/facetracknoir/curve-config.h b/facetracknoir/curve-config.h
index d1ef7ad2..0cbc7055 100644
--- a/facetracknoir/curve-config.h
+++ b/facetracknoir/curve-config.h
@@ -11,6 +11,7 @@ public:
private:
Ui::UICCurveConfigurationDialog ui;
Mappings& m;
+ void closeEvent(QCloseEvent *) override { doCancel(); }
private slots:
void doOK();
void doCancel();
diff --git a/facetracknoir/options-dialog.cpp b/facetracknoir/options-dialog.cpp
index b90408a8..1ec26d5e 100644
--- a/facetracknoir/options-dialog.cpp
+++ b/facetracknoir/options-dialog.cpp
@@ -91,3 +91,4 @@ void OptionsDialog::doCancel() {
ui.game_detector->revert();
close();
}
+
diff --git a/facetracknoir/options-dialog.hpp b/facetracknoir/options-dialog.hpp
index 9ad656a4..3ef99d06 100644
--- a/facetracknoir/options-dialog.hpp
+++ b/facetracknoir/options-dialog.hpp
@@ -15,6 +15,7 @@ public:
private:
Ui::UI_Settings ui;
Shortcuts::settings s;
+ void closeEvent(QCloseEvent *) override { doCancel(); }
private slots:
void doOK();
void doCancel();