Commit 821df05c authored by Peter Penz's avatar Peter Penz
Browse files

split view on startup if it is defined by the settings

svn path=/trunk/KDE/kdebase/apps/; revision=678063
parent 7c782315
......@@ -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]));
......
......@@ -419,7 +419,6 @@ private slots:
private:
DolphinMainWindow(int id);
void init();
void loadSettings();
/**
* Activates the given view, which means that
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment