X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c628c9d64d14e8bbcb380de08878d158857d0781..de289800b22c654e8e3d8fbaea7bdb496a021b88:/src/global.cpp diff --git a/src/global.cpp b/src/global.cpp index c9ec6a120..d5fbec6bc 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include @@ -56,7 +57,7 @@ void Dolphin::openNewWindow(const QList &urls, QWidget *window, const Open job->start(); } -bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFiles, bool splitView, const QString& preferredService) +bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFiles, bool splitView, const QString& preferredService, const QString &activationToken) { bool attached = false; @@ -121,7 +122,7 @@ bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFi interface.first->openDirectories(interface.second, splitView); reply.waitForFinished(); if (!reply.isError()) { - interface.first->activateWindow(); + interface.first->activateWindow(activationToken); attached = true; } }