kio: pass the matches list directly to KUrlCompletionPrivate::addMatches()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-13 13:43:42 +02:00
parent db387cd314
commit 350056d016

View file

@ -801,10 +801,8 @@ bool KUrlCompletionPrivate::userCompletion(const KUrlCompletionPrivate::MyURL& u
// If the thread finishes quickly make sure that the results
// are added to the first matching case.
userListThread->wait(200);
const QStringList l = userListThread->matches();
addMatches(l);
addMatches(userListThread->matches());
}
}
*pMatch = finished();