split view on startup if it is defined by the settings

svn path=/trunk/KDE/kdebase/apps/; revision=678063
This commit is contained in:
Peter Penz 2007-06-20 15:46:57 +00:00
parent 98719c18ba
commit 9f81672476
2 changed files with 6 additions and 9 deletions

View file

@ -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]));

View file

@ -419,7 +419,6 @@ private slots:
private:
DolphinMainWindow(int id);
void init();
void loadSettings();
/**
* Activates the given view, which means that