┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index c4eb07890..7d7a9f89b 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -996,7 +996,12 @@ void DolphinMainWindow::init()
updatePasteAction();
updateGoActions();
- loadSettings();
+ const bool split = generalSettings->splitView();
+ if (split) {
+ toggleSplitView();
+ }
+ updateSplitAction(split);
+ updateViewActions();
if (firstRun) {
// assure a proper default size if Dolphin runs the first time
@@ -1010,13 +1015,6 @@ void DolphinMainWindow::init()
emit urlChanged(homeUrl);
}
-void DolphinMainWindow::loadSettings()
-{
- GeneralSettings* settings = DolphinSettings::instance().generalSettings();
- updateSplitAction(settings->splitView());
- updateViewActions();
-}
-
void DolphinMainWindow::setActiveViewContainer(DolphinViewContainer* view)
{
Q_ASSERT((view == m_viewContainer[PrimaryView]) || (view == m_viewContainer[SecondaryView]));