Browse Source

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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 8 months ago
parent
commit
391b8b4ad0
Signed by: MicheleC <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)
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)
{


Loading…
Cancel
Save