Don't register the wrong name on D-Bus

Konsole isn't a KUniqueApplication

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=595849
wilder-portage
Thiago Macieira 20 years ago
parent bd323ae118
commit 4f49575477
  1. 1
      konsole/TESession.cpp
  2. 7
      konsole/konsole.cpp

@ -78,7 +78,6 @@ TESession::TESession() :
(void)new SessionAdaptor(this);
QDBusConnection::sessionBus().registerObject(QLatin1String("/Session"), this);
QDBusConnection::sessionBus().registerService("org.kde.konsole");
//create teletype for I/O with shell process
sh = new TEPty();

@ -256,11 +256,10 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
,s_workDir(workdir)
,_sessionManager(0)
{
setObjectName( name );
setObjectName( name );
(void)new KonsoleAdaptor(this);
QDBusConnection::sessionBus().registerObject(QLatin1String("/Konsole"), this);
QDBusConnection::sessionBus().registerService("org.kde.konsole");
(void)new KonsoleAdaptor(this);
QDBusConnection::sessionBus().registerObject(QLatin1String("/Konsole"), this);
m_sessionGroup = new QActionGroup(this);
isRestored = b_inRestore;

Loading…
Cancel
Save