diff options
author | David E. Narváez <david.narvaez@computer.org> | 2013-06-25 15:51:26 -0500 |
---|---|---|
committer | David E. Narváez <david.narvaez@computer.org> | 2013-06-25 15:51:26 -0500 |
commit | d4458db696a60760ca079eaf10d38119a3287b99 (patch) | |
tree | 17d8e14f401487c622febad65ec6b9185451e84f /src | |
parent | Upgrade main file (diff) | |
download | rekonq-d4458db696a60760ca079eaf10d38119a3287b99.tar.xz |
Ignore Close Event Filtering Altogether when Saving Session
A stronger version of 8981a7b2 that guarantees that Rekonq will be
included in the session restore configuration file
BUG: 319489
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/application.cpp b/src/application.cpp index 34bf3370..0c70c57a 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -521,16 +521,13 @@ bool Application::eventFilter(QObject* watched, QEvent* event) // As we are filtering the events occurred to the tabwindows, check also // when we close one of them, remove from tab window list and check if it was last... - if (event->type() == QEvent::Close) + if ((event->type() == QEvent::Close) && !rApp->sessionSaving()) { RekonqWindow *window = qobject_cast<RekonqWindow*>(watched); + if (window) { - if(!rApp->sessionSaving()) - { - SessionManager::self()->saveSession(); - } - + SessionManager::self()->saveSession(); m_rekonqWindows.removeOne(window); #ifdef HAVE_KACTIVITIES QString currentActivity = m_activityConsumer->currentActivity(); |