]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/terminalsidebarpage.cpp
there's no need having 2-liners inside their own method when this method is only...
[dolphin.git] / src / terminalsidebarpage.cpp
index d3673b164e205acc954273c2bb101030e9d2f376..25a92b380a050726df7356a4f6e1e46eb40fa3bd 100644 (file)
@@ -65,7 +65,7 @@ void TerminalSidebarPage::showEvent(QShowEvent* event)
     }
 
     if (m_terminal == 0) {
-        KPluginFactory* factory = KLibLoader::self()->factory("libkonsolepart");
+        KPluginFactory* factory = KPluginLoader("libkonsolepart").factory();
         KParts::ReadOnlyPart* part = factory ? (factory->create<KParts::ReadOnlyPart>(this)) : 0;
         if (part != 0) {
             m_layout->addWidget(part->widget());