diff options
-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(); |