blob: 45ee52bd26056c3ba0e698917e0f40844d584139 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From e3de3ca72552c81bc8d7dbe5cf1568eedd33c31e Mon Sep 17 00:00:00 2001
From: "Martin T. H. Sandsmark" <martin.sandsmark@kde.org>
Date: Wed, 25 Jan 2017 22:25:48 +0100
Subject: [PATCH] Fix opening of new tabs with multiple processes
Make sure we re-use the process if the user wants a new tab.
BUG: 373440
REVIEW: 129886
---
src/main.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.cpp b/src/main.cpp
index f4bb5af..33a2bdb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -117,8 +117,8 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char* argv[])
parser->process(*app);
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;
}
--
2.10.2
|