Commit 6fe4aecd authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

ensure app adaptor survives long enough

the document deletion signals will otherwise
access already destructed objects

BUG: 453076
parent 893b777c
Pipeline #170593 passed with stage
in 8 minutes and 23 seconds
......@@ -57,8 +57,8 @@ KateApp::KateApp(const QCommandLineParser &args, const ApplicationMode mode, con
: m_args(args)
, m_mode(mode)
, m_wrapper(appSelf = this)
, m_docManager(this)
, m_adaptor(this)
, m_docManager(this)
, m_pluginManager(this)
, m_sessionManager(this, sessionsDir)
, m_stashManager(this)
......
......@@ -454,14 +454,15 @@ private:
KTextEditor::Application m_wrapper;
/**
* document manager
* dbus interface, must survive longer than m_docManager
* e.g. the destroyed signal of the document might access this
*/
KateDocManager m_docManager;
KateAppAdaptor m_adaptor;
/**
* dbus interface
* document manager
*/
KateAppAdaptor m_adaptor;
KateDocManager m_docManager;
/**
* plugin manager
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment