Commit 5dff395e authored by Ahmad Samir's avatar Ahmad Samir
Browse files

kio_filenamesearch: fix crash due to KCoreDirLister changes

Error reporting was changed in KCoreDirlister, to match the original behaviour
we need to explicitly disable auto error handling.

This fixes a crash while searching in Dolphin, kio_filenamesearch intrenally
uses a dirlister, and a nested event loop, if there is an error while listing
some dir it tries to report it using a job ui delegate, but the parent job
could well be dead by that time, which causes a crash:
"QWidget: Cannot create a QWidget without QApplication"

Note that this crash only happens if KDE_FORK_SLAVES is _not_ set.

BUG: 438187
parent aeb1d1bb
Pipeline #71452 passed with stage
in 2 minutes and 41 seconds
......@@ -102,6 +102,7 @@ void FileNameSearchProtocol::searchDirectory(const QUrl &directory,
QScopedPointer<KCoreDirLister> dirLister(new KCoreDirLister);
QEventLoop eventLoop;
QObject::connect(, static_cast<void(KCoreDirLister::*)()>(&KCoreDirLister::canceled),
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