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 Key ID: 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)
{

Loading…
取消
儲存