diff options
| author | Peter Penz <[email protected]> | 2007-06-20 15:46:57 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-20 15:46:57 +0000 |
| commit | 9f8167247627d80c2124381ea1af67cc43c36540 (patch) | |
| tree | 0c9d8df284829876e5af8a91e9ad4cf259a30174 | |
| parent | 98719c18bae96a1b04f8b21b5792eeb906284ad7 (diff) | |
split view on startup if it is defined by the settings
svn path=/trunk/KDE/kdebase/apps/; revision=678063
| -rw-r--r-- | src/dolphinmainwindow.cpp | 14 | ||||
| -rw-r--r-- | src/dolphinmainwindow.h | 1 |
2 files changed, 6 insertions, 9 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])); 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 |
