diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-13 13:51:54 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-13 13:51:54 +0900 |
commit | 391b8b4ad098d32117fa98e284189215cc089a2d (patch) | |
tree | 0a20ef66155d7e088b66a046482eb0ce4439dfc1 | |
parent | 28785edb5894ded29b07d98682afab47daea1b9a (diff) | |
download | yakuake-391b8b4ad098d32117fa98e284189215cc089a2d.tar.gz yakuake-391b8b4ad098d32117fa98e284189215cc089a2d.zip |
Fixed support for multiple terminals. This relates to bug 2537.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | yakuake/src/terminal.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |