summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid E. Narváez <david.narvaez@computer.org>2013-05-20 22:15:02 -0500
committerDavid E. Narváez <david.narvaez@computer.org>2013-05-20 22:15:02 -0500
commit8981a7b2ddc3ece450f52783fa561c01a61b4e61 (patch)
tree83999106d007937677eef40f662d3598a1a932ce /src
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-8981a7b2ddc3ece450f52783fa561c01a61b4e61.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp6
1 files changed, 5 insertions, 1 deletions
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<RekonqWindow*>(watched);
if (window)
{
- SessionManager::self()->saveSession();
+ if(!rApp->sessionSaving())
+ {
+ SessionManager::self()->saveSession();
+ }
+
m_rekonqWindows.removeOne(window);
#ifdef HAVE_KACTIVITIES
QString currentActivity = m_activityConsumer->currentActivity();