summaryrefslogtreecommitdiffhomepage
path: root/variant/default/main-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-03-04 15:25:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-03-04 15:25:28 +0100
commit7dcc6ebdf12bba6273f091cf7b19b539edcb9993 (patch)
tree349a96482a4a18c1e5401fc268973ad93752824a /variant/default/main-window.hpp
parent3d226e63b07b99a7ff00ea1da0ae6338b01ef5c9 (diff)
opentrack: fix close button with tray
Reported by: Yuri Vostrenkov
Diffstat (limited to 'variant/default/main-window.hpp')
-rw-r--r--variant/default/main-window.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/variant/default/main-window.hpp b/variant/default/main-window.hpp
index b4b7dbb7..c28aadc4 100644
--- a/variant/default/main-window.hpp
+++ b/variant/default/main-window.hpp
@@ -115,6 +115,8 @@ class main_window : public QMainWindow, private State
template<typename t, typename F>
bool mk_window_common(std::unique_ptr<t>& d, F&& ctor);
+ void closeEvent(QCloseEvent *event) override;
+
private slots:
void save_modules();
void exit(int status = EXIT_SUCCESS);