From: Peter Penz Date: Wed, 20 Jun 2007 15:46:57 +0000 (+0000) Subject: split view on startup if it is defined by the settings X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9f8167247627d80c2124381ea1af67cc43c36540 split view on startup if it is defined by the settings svn path=/trunk/KDE/kdebase/apps/; revision=678063 --- 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])); diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 17a7dce6a..5bbba5f21 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -419,7 +419,6 @@ private slots: private: DolphinMainWindow(int id); void init(); - void loadSettings(); /** * Activates the given view, which means that