Fix DBus communication in order to re-use app instances

This commit is contained in:
2017-09-11 01:08:00 +01:00
parent 261cee821f
commit 1833ca12ec
3 changed files with 6 additions and 5 deletions
+1 -2
View File
@@ -56,8 +56,7 @@ int main( int argc, char* argv[] )
* use dbus, if available
* allows for resuse of running Kate instances
*/
QDBusConnectionInterface* const sessionBusInterface = QDBusConnection::sessionBus().interface();
if( sessionBusInterface )
if (QDBusConnectionInterface * const sessionBusInterface = QDBusConnection::sessionBus().interface())
{
Bool force_new = false;
QStringList filenameList;