diff --git a/qad/application/emainwindow.cpp b/qad/application/emainwindow.cpp index 13968a8..9196281 100644 --- a/qad/application/emainwindow.cpp +++ b/qad/application/emainwindow.cpp @@ -31,7 +31,6 @@ action_show_all_docks(this), action_hide_all_docks(this), first_show(true) { EMainWindow::~EMainWindow() { if (tid > 0) killTimer(tid); tid = 0; - saveSession(); } @@ -72,6 +71,7 @@ void EMainWindow::showEvent(QShowEvent * e) { void EMainWindow::closeEvent(QCloseEvent * e) { if (!checkSave()) e->ignore(); + else saveSession(); }