Fix konsolepart lookup

The location changed for KF6
This commit is contained in:
Nicolas Fella 2023-07-05 23:24:50 +02:00
parent 49f9a28f4a
commit f60628cdfa

View file

@ -140,7 +140,7 @@ void TerminalPanel::showEvent(QShowEvent *event)
if (!m_terminal) {
m_clearTerminal = true;
KPluginFactory *factory = KPluginFactory::loadFactory(KPluginMetaData(QStringLiteral("konsolepart"))).plugin;
KPluginFactory *factory = KPluginFactory::loadFactory(KPluginMetaData(QStringLiteral("kf6/parts/konsolepart"))).plugin;
m_konsolePart = factory ? (factory->create<KParts::ReadOnlyPart>(this)) : nullptr;
if (m_konsolePart) {
connect(m_konsolePart, &KParts::ReadOnlyPart::destroyed, this, &TerminalPanel::terminalExited);