https://bugs.kde.org/show_bug.cgi?id=413509

--- Comment #5 from RJVB <rjvber...@gmail.com> ---
The only use of KDirLister I could find that might explain this crash is in the
filemanager plugin. It's a bit early to confirm, but I haven't seen any of
these crashes since running the patch below (which in any way shouldn't hurt).
If I do get another of these crashes I should be able to see whether this
dirlister is the culprit, at least.

diff --git plugins/filemanager/filemanager.cpp
plugins/filemanager/filemanager.cpp
index
2e0b548b9e67766f695eaa5841b13784f42955cf..3a2a08151d2611b49908953d4215d0067b0a465b
100644
--- plugins/filemanager/filemanager.cpp
+++ plugins/filemanager/filemanager.cpp
@@ -88,6 +88,11 @@ FileManager::FileManager(KDevFileManagerPlugin *plugin,
QWidget* parent)
     // Connect the bookmark handler
     connect(m_bookmarkHandler, &BookmarkHandler::openUrl, this,
&FileManager::gotoUrl);
     connect(m_bookmarkHandler, &BookmarkHandler::openUrl, this,
&FileManager::updateNav);
+    connect(KDevelop::ICore::self(), &KDevelop::ICore::aboutToShutdown,
[this](){
+        qCDebug(PLUGIN_FILEMANAGER) << "Shutting down: closing" << this;
+        dirop->close();
+        dirop->dirLister()->setMainWindow(nullptr);
+    } );
 }

 FileManager::~FileManager()

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to