diff options
author | Michele Calgaro <[email protected]> | 2015-10-23 17:59:00 +0700 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-10-23 17:59:00 +0700 |
commit | de91a161b1555bca58c4c30c6367dcc38750ca17 (patch) | |
tree | ec3ebc67b5391bc395a365ca13f267593eb4f9df /kate/app/katemainwindow.cpp | |
parent | f0f642f6b23b9a38727944a6db194bf4d16f0377 (diff) | |
download | tdebase-de91a161b1555bca58c4c30c6367dcc38750ca17.tar.gz tdebase-de91a161b1555bca58c4c30c6367dcc38750ca17.zip |
Populated session panel. Now able to switch session within the new panel.
*** NOTE *** In this commit both the old and new session managers are active,
therefore funny things occasionally happen. Then won't be the case from the
next commit since the old session manager will be disabled.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kate/app/katemainwindow.cpp')
-rw-r--r-- | kate/app/katemainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kate/app/katemainwindow.cpp b/kate/app/katemainwindow.cpp index 794e1a777..1546c575b 100644 --- a/kate/app/katemainwindow.cpp +++ b/kate/app/katemainwindow.cpp @@ -370,7 +370,7 @@ bool KateMainWindow::queryClose() // and save docs if we really close down ! if ( queryClose_internal () ) { - KateApp::self()->sessionManager()->saveActiveSession(true, true); + KateApp::self()->oldSessionManager()->saveActiveSession(true, true); // detach the dcopClient KateApp::self()->dcopClient()->detach(); @@ -824,7 +824,7 @@ void KateMainWindow::updateCaption (Kate::Document *doc) c = m_viewManager->activeView()->getDoc()->url().prettyURL(); } - TQString sessName = KateApp::self()->sessionManager()->activeSession()->sessionName(); + TQString sessName = KateApp::self()->oldSessionManager()->activeSession()->sessionName(); if ( !sessName.isEmpty() ) sessName = TQString("%1: ").arg( sessName ); @@ -858,7 +858,7 @@ void KateMainWindow::saveGlobalProperties( TDEConfig* sessionConfig ) KateDocManager::self()->saveDocumentList (sessionConfig); sessionConfig->setGroup("General"); - sessionConfig->writeEntry ("Last Session", KateApp::self()->sessionManager()->activeSession()->sessionFileRelative()); + sessionConfig->writeEntry ("Last Session", KateApp::self()->oldSessionManager()->activeSession()->sessionFileRelative()); } // kate: space-indent on; indent-width 2; replace-tabs on; |