X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d2506ffa63812fd0d8e9de248d7f3dd94ec2bf38..ada16756d69c012c089733f6ce4e9271f84ccca6:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index 10adfc638..8981b54bc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -142,11 +142,6 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) return app.exec(); } - if (splitView && urls.size() < 2) { - // Split view does only make sense if we have at least 2 URLs - urls.append(urls.last()); - } - if (!parser.isSet(QStringLiteral("new-window"))) { if (Dolphin::attachToExistingInstance(urls, openFiles, splitView)) { // Successfully attached to existing instance of Dolphin @@ -159,6 +154,11 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) urls.append(Dolphin::homeUrl()); } + if (splitView && urls.size() < 2) { + // Split view does only make sense if we have at least 2 URLs + urls.append(urls.last()); + } + DolphinMainWindow* mainWindow = new DolphinMainWindow(); if (openFiles) {