]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Easier code
authorRafael Fernández López <ereslibre@kde.org>
Wed, 19 Dec 2007 11:19:04 +0000 (11:19 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Wed, 19 Dec 2007 11:19:04 +0000 (11:19 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=750473

src/terminalsidebarpage.cpp

index 61cc5aef885708e6b890fe1b3a35f55e414c2aef..4a82599f0c64d8c527c65be9dc99c6ac4fb581e8 100644 (file)
@@ -62,20 +62,7 @@ void TerminalSidebarPage::terminalExited()
 {
     emit hideTerminalSidebarPage();
 
-    KPluginFactory* factory = KPluginLoader("libkonsolepart").factory();
-    KParts::ReadOnlyPart* part = factory ? (factory->create<KParts::ReadOnlyPart>(this)) : 0;
-    if (part != 0) {
-        connect(part, SIGNAL(destroyed(QObject*)), this, SLOT(terminalExited()));
-        m_terminalWidget = part->widget();
-        m_layout->addWidget(m_terminalWidget);
-        m_terminal = qobject_cast<TerminalInterface *>(part);
-        m_terminal->showShellInDir(url().path());
-    }
-    if (m_terminal != 0) {
-        m_terminal->sendInput("cd " + KShell::quoteArg(url().path()) + '\n');
-        m_terminal->sendInput("clear\n");
-        m_terminalWidget->setFocus();
-    }
+    m_terminal = 0;
 }
 
 void TerminalSidebarPage::showEvent(QShowEvent* event)