diff options
author | David E. Narváez <david.narvaez@computer.org> | 2013-05-20 22:15:02 -0500 |
---|---|---|
committer | David E. Narváez <david.narvaez@computer.org> | 2013-05-20 22:15:02 -0500 |
commit | 8981a7b2ddc3ece450f52783fa561c01a61b4e61 (patch) | |
tree | 83999106d007937677eef40f662d3598a1a932ce | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-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
-rw-r--r-- | src/application.cpp | 6 |
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(); |