diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-21 09:59:01 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-23 11:31:33 +0100 |
| commit | 53ff9f5a0cc68bdef348b585120914476a9df848 (patch) | |
| tree | d9eaa3ff36d82fffbe82b9d6488e6b95166dad7c /src/mainwindow.hpp | |
| parent | 3170b38373f19eb1f1d0712c682cb170a1b10ceb (diff) | |
| download | kristall-53ff9f5a0cc68bdef348b585120914476a9df848.tar.gz | |
Fix window geometry/state not being saved in some environments
The window state and geometry are now saved either after app.exec() finished, or if closeEvent is emitted on the MainWindow.
This allows the window geometry/state restoration to be a lot more reliable. E.g in my configuration (Fluxbox) - if I closed the window using my own defined keybinding, the state would not get saved
Diffstat (limited to 'src/mainwindow.hpp')
| -rw-r--r-- | src/mainwindow.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index a252daa..7113587 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -47,6 +47,8 @@ public: void mousePressEvent(QMouseEvent *event) override; + void closeEvent(QCloseEvent *event) override; + private slots: void on_browser_tabs_currentChanged(int index); |
