┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2021-08-02 10:32:31 -0600
committerNate Graham <[email protected]>2021-08-02 10:32:31 -0600
commitd472cb2a25cef38dbebbd0ec9073e4ec05d65272 (patch)
tree86d221422773d75835d65ba14d71cdcf15fe81c1 /src/main.cpp
parent393c659c9a0ffc5f6ddb4ee161b9b3937ead0145 (diff)
parentf190ae1cf8fc1c1bf0d87899a84f796a3e473032 (diff)
Merge branch 'release/21.08'
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
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!";
}