-DolphinApplication::~DolphinApplication()
-{
- // cleanup what ever is left from the MainWindows
- while (m_mainWindows.count() != 0) {
- delete m_mainWindows.takeFirst();
+ KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
+
+ bool resetSplitSettings = false;
+ 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;