┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/terminal/terminalpanel.h
diff options
context:
space:
mode:
authorSebastian Englbrecht <[email protected]>2026-05-23 15:31:27 +0200
committerMéven Car <[email protected]>2026-05-28 08:59:00 +0000
commit0d6302ef9be3387d3a62093ae18c92ec84e5a2e1 (patch)
treeda9746a74e90cb04b022770a92aee6617f9f1d52 /src/panels/terminal/terminalpanel.h
parent3efeaaffd4cb13168e9327ec146f0a40ff9d75af (diff)
terminalpanel: delete konsolePart in destructor, use unique_ptr for KXMLGUIBuilder
Deleting konsolePart before QObject child cleanup ensures m_konsolePartClientBuilder is still alive when the lambda connected to m_terminalWidget::destroyed fires and calls factory->removeClient().
Diffstat (limited to 'src/panels/terminal/terminalpanel.h')
-rw-r--r--src/panels/terminal/terminalpanel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/panels/terminal/terminalpanel.h b/src/panels/terminal/terminalpanel.h
index 7f4e9e36c..d6ed4b981 100644
--- a/src/panels/terminal/terminalpanel.h
+++ b/src/panels/terminal/terminalpanel.h
@@ -12,6 +12,9 @@
#include <QQueue>
+#include <memory>
+
+class KXMLGUIBuilder;
class TerminalInterface;
class KActionCollection;
class KMessageWidget;
@@ -94,6 +97,7 @@ private:
QWidget *m_terminalWidget;
KMessageWidget *m_konsolePartMissingMessage;
KParts::ReadOnlyPart *m_konsolePart;
+ std::unique_ptr<KXMLGUIBuilder> m_konsolePartClientBuilder;
QString m_konsolePartCurrentDirectory;
QQueue<QString> m_sendCdToTerminalHistory;
org::kde::KIOFuse::VFS m_kiofuseInterface;