summaryrefslogtreecommitdiffstats
path: root/kate/app/kateappIface.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2016-02-19 22:04:40 +0700
committerMichele Calgaro <[email protected]>2016-02-19 22:04:40 +0700
commit2675b2147b5ccc7782535e5f662847768bb8b442 (patch)
tree06d2c1ef94f890dc1e0b0795ff8f539652344958 /kate/app/kateappIface.cpp
parent099c8a8821e896884180f57dda94af5fdbd87aaa (diff)
downloadtdebase-2675b2147b5ccc7782535e5f662847768bb8b442.tar.gz
tdebase-2675b2147b5ccc7782535e5f662847768bb8b442.zip
Added support for Kate startup options and for "New session" functionality.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kate/app/kateappIface.cpp')
-rw-r--r--kate/app/kateappIface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kate/app/kateappIface.cpp b/kate/app/kateappIface.cpp
index 3ce9229b4..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)
{
@@ -91,9 +93,7 @@ bool KateAppDCOPIface::openInput (TQString text)
bool KateAppDCOPIface::activateSession(TQString session)
{
-// MIKE: to fix
-// m_app->sessionManager()->activateSession (m_app->oldSessionManager()->giveSession (session));
-
+ m_app->sessionManager()->activateSession(m_app->sessionManager()->getSessionIdFromName(session));
return true;
}