X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/73ff57bef44984643bf1ffdb9a478095cfb78dfb..37a98417cd64008b63b95b80ecbedc84d487bd25:/src/global.cpp diff --git a/src/global.cpp b/src/global.cpp index 5d6d90b59..cd1409d9e 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -15,10 +15,8 @@ #include #include #include -#include #include -#include QList Dolphin::validateUris(const QStringList& uriList) { @@ -92,7 +90,7 @@ bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFi do { auto &interface = dolphinInterfaces[i]; - auto isUrlOpenReply = openFiles ? interface.first->isUrlOrParentOpen(url) : interface.first->isUrlOpen(url); + auto isUrlOpenReply = openFiles ? interface.first->isItemVisibleInAnyView(url) : interface.first->isUrlOpen(url); isUrlOpenReply.waitForFinished(); if (!isUrlOpenReply.isError() && isUrlOpenReply.value()) { interface.second.append(url);