EMainWindow session fix

This commit is contained in:
2020-05-25 13:56:55 +03:00
parent b6e86b6160
commit 69b0ee9d1a

View File

@@ -31,7 +31,6 @@ action_show_all_docks(this), action_hide_all_docks(this), first_show(true) {
EMainWindow::~EMainWindow() { EMainWindow::~EMainWindow() {
if (tid > 0) killTimer(tid); if (tid > 0) killTimer(tid);
tid = 0; tid = 0;
saveSession();
} }
@@ -72,6 +71,7 @@ void EMainWindow::showEvent(QShowEvent * e) {
void EMainWindow::closeEvent(QCloseEvent * e) { void EMainWindow::closeEvent(QCloseEvent * e) {
if (!checkSave()) e->ignore(); if (!checkSave()) e->ignore();
else saveSession();
} }