From d4458db696a60760ca079eaf10d38119a3287b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Tue, 25 Jun 2013 15:51:26 -0500 Subject: 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 --- src/application.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/application.cpp') 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(watched); + if (window) { - if(!rApp->sessionSaving()) - { - SessionManager::self()->saveSession(); - } - + SessionManager::self()->saveSession(); m_rekonqWindows.removeOne(window); #ifdef HAVE_KACTIVITIES QString currentActivity = m_activityConsumer->currentActivity(); -- cgit v1.2.1