Commit a2d0f284 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix crash on file browser activation

BUG: 453234
parent 7753a3c0
Pipeline #170126 failed with stage
in 5 minutes and 25 seconds
......@@ -100,9 +100,12 @@ void KateFileBrowserPluginView::createFileBrowser(bool visible)
disconnect(m_toolView.get(), SIGNAL(toolVisibleChanged(bool)), this, SLOT(createFileBrowser(bool)));
m_fileBrowser = std::make_unique<KateFileBrowser>(m_mainWindow, m_toolView.get());
m_fileBrowser->readSessionConfig(*cg);
// delete the config now
cg.reset();
// read config only if there yet, see bug 453234
if (cg) {
m_fileBrowser->readSessionConfig(*cg);
cg.reset();
}
}
bool KateFileBrowserPluginView::eventFilter(QObject *obj, QEvent *event)
......
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