From 8981a7b2ddc3ece450f52783fa561c01a61b4e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Mon, 20 May 2013 22:15:02 -0500 Subject: Don't Save Sessions When Closing Tabs from Logout Check if we're saving session (on KDE logout) before requesting the session to save. This will allow Rekonq to restore sessions on next login. CCBUG: 319489 REVIEW: 110530 --- src/application.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/application.cpp b/src/application.cpp index cfe4cae4..7fdf006c 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -526,7 +526,11 @@ bool Application::eventFilter(QObject* watched, QEvent* event) RekonqWindow *window = qobject_cast(watched); if (window) { - SessionManager::self()->saveSession(); + if(!rApp->sessionSaving()) + { + SessionManager::self()->saveSession(); + } + m_rekonqWindows.removeOne(window); #ifdef HAVE_KACTIVITIES QString currentActivity = m_activityConsumer->currentActivity(); -- cgit v1.2.1