summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. Narváez <david.narvaez@computer.org>2013-06-25 15:51:26 -0500
committerDavid E. Narváez <david.narvaez@computer.org>2013-06-25 15:51:26 -0500
commitd4458db696a60760ca079eaf10d38119a3287b99 (patch)
tree17d8e14f401487c622febad65ec6b9185451e84f
parentUpgrade main file (diff)
downloadrekonq-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
-rw-r--r--src/application.cpp9
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();