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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 5 роки тому
джерело 28785edb58
коміт 391b8b4ad0
Підписано: MicheleC
Ідентифікатор GPG ключа: 2A75B7CA8ADED5CF

@ -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)
{

Завантаження…
Відмінити
Зберегти