Browse Source

Fixed support for multiple terminals. This relates to bug 2537.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 1 month ago
parent
commit
391b8b4ad0
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      yakuake/src/terminal.cpp

+ 5
- 1
yakuake/src/terminal.cpp View File

@@ -33,7 +33,11 @@ Terminal::Terminal(TQWidget* parent, const char* name) : TQObject(parent, name)
33 33
     terminal_interface = NULL;
34 34
 
35 35
     if ((factory = KLibLoader::self()->factory("libkonsolepart")) != NULL)
36
-        terminal_part = (KParts::Part *) (factory->create(TQT_TQOBJECT(parent)));
36
+    {
37
+        TQStringList args = TQStringList();
38
+        args.append(TQString("Terminal-") + TQString::number(terminal_id));
39
+        terminal_part = (KParts::Part *) (factory->create(TQT_TQOBJECT(parent), 0, "KParts::Part", args));
40
+    }
37 41
 
38 42
     if (terminal_part != NULL)
39 43
     {

Loading…
Cancel
Save