From 391b8b4ad098d32117fa98e284189215cc089a2d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 13 Jun 2019 13:51:54 +0900 Subject: Fixed support for multiple terminals. This relates to bug 2537. Signed-off-by: Michele Calgaro --- yakuake/src/terminal.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yakuake/src/terminal.cpp b/yakuake/src/terminal.cpp index eae6553..75dd942 100644 --- a/yakuake/src/terminal.cpp +++ b/yakuake/src/terminal.cpp @@ -33,7 +33,11 @@ Terminal::Terminal(TQWidget* parent, const char* name) : TQObject(parent, name) terminal_interface = NULL; if ((factory = KLibLoader::self()->factory("libkonsolepart")) != NULL) - terminal_part = (KParts::Part *) (factory->create(TQT_TQOBJECT(parent))); + { + TQStringList args = TQStringList(); + args.append(TQString("Terminal-") + TQString::number(terminal_id)); + terminal_part = (KParts::Part *) (factory->create(TQT_TQOBJECT(parent), 0, "KParts::Part", args)); + } if (terminal_part != NULL) { -- cgit v1.2.1