X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/393c659c9a0ffc5f6ddb4ee161b9b3937ead0145..99cc976a8564cbdae63e4261fcb2292a33148dbc:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index ba894ec38..779690c1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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!"; }