mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Fix konsolepart lookup
The location changed for KF6
This commit is contained in:
parent
49f9a28f4a
commit
f60628cdfa
|
@ -140,7 +140,7 @@ void TerminalPanel::showEvent(QShowEvent *event)
|
||||||
|
|
||||||
if (!m_terminal) {
|
if (!m_terminal) {
|
||||||
m_clearTerminal = true;
|
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;
|
m_konsolePart = factory ? (factory->create<KParts::ReadOnlyPart>(this)) : nullptr;
|
||||||
if (m_konsolePart) {
|
if (m_konsolePart) {
|
||||||
connect(m_konsolePart, &KParts::ReadOnlyPart::destroyed, this, &TerminalPanel::terminalExited);
|
connect(m_konsolePart, &KParts::ReadOnlyPart::destroyed, this, &TerminalPanel::terminalExited);
|
||||||
|
|
Loading…
Reference in a new issue