EMainWindow session fix
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user