mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
split view on startup if it is defined by the settings
svn path=/trunk/KDE/kdebase/apps/; revision=678063
This commit is contained in:
parent
98719c18ba
commit
9f81672476
2 changed files with 6 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue