diff --git a/src/Application.cpp b/src/Application.cpp index 6e8e1ee1..49fd4456 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -371,7 +371,6 @@ MainWindow* Application::processWindowArgs(bool &createdNewMainWindow) { MainWindow* window = 0; if (m_parser->isSet(QStringLiteral("new-tab"))) { - // topLevelsWidgets() now always returns no windows BUG:373440 QListIterator iter(QApplication::topLevelWidgets()); iter.toBack(); while (iter.hasPrevious()) { diff --git a/src/main.cpp b/src/main.cpp index fb53560e..db3b83bf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -121,8 +121,8 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char* argv[]) parser->process(args); about.processCommandLine(parser.data()); - // Enable user to force multiple instances - if (!Konsole::KonsoleSettings::useSingleInstance()) { + // Enable user to force multiple instances, unless a new tab is requested + if (!Konsole::KonsoleSettings::useSingleInstance() && !parser->isSet(QStringLiteral("new-tab"))) { startupOption = KDBusService::Multiple; }