]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/global.cpp
Open new instance of Dolphin if no URLs are given
[dolphin.git] / src / global.cpp
index 73e154b3a035985203a05cc0fdd969b2b0b9c314..42044c97dc6b4aab31467ecc1e42e40f01e28eea 100644 (file)
@@ -72,8 +72,8 @@ void Dolphin::openNewWindow(const QList<QUrl> &urls, QWidget *window, const Open
 
 bool Dolphin::attachToExistingInstance(const QList<QUrl>& inputUrls, bool openFiles, bool splitView, const QString& preferredService)
 {
-    if (KWindowSystem::isPlatformWayland()) {
-        // TODO: once Wayland clients can raise or activate themselves remove this conditional
+    // TODO: once Wayland clients can raise or activate themselves remove check from conditional
+    if (KWindowSystem::isPlatformWayland() || inputUrls.isEmpty()) {
         return false;
     }