X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/9e8e58147efe16449c7b3aa54db323dd09df95e7..272aa65bb55dd31f58e8a8e24ea7bc8bd2712daa:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index fba45f43c..6e9ef0b2a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -202,12 +202,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!"; }