-void DolphinApplication::refreshMainWindows()
-{
- for (int i = 0; i < m_mainWindows.count(); ++i) {
- m_mainWindows[i]->refreshViews();
+ bool resetSplitSettings = false;
+ GeneralSettings* generalSettings = DolphinSettings::instance().generalSettings();
+ if (args->isSet("split") && !generalSettings->splitView()) {
+ // Dolphin should be opened with a split view although this is not
+ // set in the GeneralSettings. Temporary adjust the setting until
+ // all passed URLs have been opened.
+ generalSettings->setSplitView(true);
+ resetSplitSettings = true;