From 5b21e7c3105258f90745ff12e6877e7a8e8cb366 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Mon, 15 Jun 2026 10:23:47 +0000 Subject: informationpanel: abort the folder stat job when the panel is destroyed The stat job started by showItemInfo() to describe the current folder ran to completion on its own. When the panel was destroyed while the job was still in flight, the job and the UI delegate it created outlived the panel. Parent the job to the panel so QObject destruction aborts it instead. --- src/panels/information/informationpanel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/panels') diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 5f613c520..e540cf8b7 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -254,6 +254,7 @@ void InformationPanel::showItemInfo() // an item for the currently shown directory. m_shownUrl = url(); m_folderStatJob = KIO::stat(m_shownUrl, KIO::StatJob::SourceSide, KIO::StatDefaultDetails | KIO::StatRecursiveSize, KIO::HideProgressInfo); + m_folderStatJob->setParent(this); if (m_folderStatJob->uiDelegate()) { KJobWidgets::setWindow(m_folderStatJob, this); } -- cgit v1.3.1