diff options
author | Michele Calgaro <[email protected]> | 2017-09-15 23:37:24 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2017-09-15 23:37:24 +0900 |
commit | 73e2d6bc1c5d0d5ec4783b44f50a4d5d81d27afc (patch) | |
tree | 6979c1670fa6f7a82a8b502be8c10cdacc7c5210 /kate/app/kateappIface.cpp | |
parent | cd2fc7ba9120fac49ebe6ceaee51bc8eaf802d05 (diff) | |
parent | 6131095c14221ddbd16805059a9f3b3fc6c58225 (diff) | |
download | tdebase-73e2d6bc1c5d0d5ec4783b44f50a4d5d81d27afc.tar.gz tdebase-73e2d6bc1c5d0d5ec4783b44f50a4d5d81d27afc.zip |
Merge branch 'katesessions': add Kate session panel.
Diffstat (limited to 'kate/app/kateappIface.cpp')
-rw-r--r-- | kate/app/kateappIface.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/kate/app/kateappIface.cpp b/kate/app/kateappIface.cpp index 259e48b89..bc06f1b78 100644 --- a/kate/app/kateappIface.cpp +++ b/kate/app/kateappIface.cpp @@ -23,6 +23,8 @@ #include "katedocmanager.h" #include "katemainwindow.h" +// FIXME: review Kate's DCOP interface for session management when the new session code is ready + KateAppDCOPIface::KateAppDCOPIface (KateApp *app) : DCOPObject ("KateApplication") , m_app (app) { @@ -89,16 +91,15 @@ bool KateAppDCOPIface::openInput (TQString text) return m_app->openInput (text); } -bool KateAppDCOPIface::activateSession (TQString session) +bool KateAppDCOPIface::activateSession(TQString session) { - m_app->sessionManager()->activateSession (m_app->sessionManager()->giveSession (session)); - + m_app->sessionManager()->activateSession(m_app->sessionManager()->getSessionIdFromName(session)); return true; } -const TQString & KateAppDCOPIface::session() const +const TQString& KateAppDCOPIface::session() const { - return m_app->sessionManager()->activeSession()->sessionName(); + return m_app->sessionManager()->getActiveSessionName(); } // kate: space-indent on; indent-width 2; replace-tabs on; |