]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/main.cpp
Merge branch 'release/21.08'
[dolphin.git] / src / main.cpp
index ba894ec38c2944633fe3b78243c02bb000249566..779690c1c5de280c9742f2d432e0a3c395156986 100644 (file)
@@ -210,12 +210,12 @@ int main(int argc, char **argv)
                 // If the user passed any URLs to Dolphin, open those in the
                 // window after session-restoring it
                 if (startedWithURLs) {
-                    mainWindow->openDirectories(urls, splitView);
+                    if (openFiles) {
+                        mainWindow->openFiles(urls, splitView);
+                    } else {
+                        mainWindow->openDirectories(urls, splitView);
+                    }
                 }
-
-                // Now handle invalid locations in the set of active views to
-                // avoid issues like https://bugs.kde.org/show_bug.cgi?id=427619
-                mainWindow->setViewsWithInvalidPathsToHome();
             } else {
                 qCWarning(DolphinDebug) << "Unknown class " << className << " in session saved data!";
             }