┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Lichwała <[email protected]>2025-11-16 12:13:20 +0100
committerRafał Lichwała <[email protected]>2025-11-16 15:10:16 +0100
commit4916403d46216237205394dc86a86b8ea5a4cedc (patch)
treeb50e81e592426abbb3ad273b300eb51a7fb05da1
parent8b997e6407580ddcef8fb36eb8d54cfae2d903fd (diff)
main: set active view in split mode when not restoring session
When Dolphin config was set to start in split mode by default AND simply open the given folder in both panels (Settings -> Folders&Tabs -> Show on startup -> selected folder [NOT "...state from last time"]) no view was initially active making weird side-effects described in both bugs. This commit solves that by calling mainWindow->openDirectories on start when both of the above conditions are met. BUG: 503576 BUG: 508554
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4a346943b..58999a258 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -256,6 +256,10 @@ int main(int argc, char **argv)
qCWarning(DolphinDebug) << "Unknown class " << className << " in session saved data!";
}
}
+ } else if (splitView) {
+ // if split mode is set by default and we do not restore last session view
+ // we need to call it to properly activate dolphin view
+ mainWindow->openDirectories(urls, splitView);
}
mainWindow->setSessionAutoSaveEnabled(GeneralSettings::rememberOpenedTabs());