X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d2506ffa63812fd0d8e9de248d7f3dd94ec2bf38..ada16756d69c012c089733f6ce4e9271f84ccca6:/src/global.cpp diff --git a/src/global.cpp b/src/global.cpp index 42044c97d..21660a828 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -73,7 +73,7 @@ void Dolphin::openNewWindow(const QList &urls, QWidget *window, const Open bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFiles, bool splitView, const QString& preferredService) { // TODO: once Wayland clients can raise or activate themselves remove check from conditional - if (KWindowSystem::isPlatformWayland() || inputUrls.isEmpty()) { + if (KWindowSystem::isPlatformWayland() || inputUrls.isEmpty() || !GeneralSettings::openExternallyCalledFolderInNewTab()) { return false; } @@ -90,7 +90,7 @@ bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFi QStringLiteral("/dolphin/Dolphin_1"), QStringLiteral("org.kde.dolphin.MainWindow")) ); - if (preferred->isValid()) { + if (preferred->isValid() && !preferred->lastError().isValid()) { dolphinServices.append(qMakePair(preferred, QStringList() )); } }