Commit 61860066 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[XWindowTasksModel] Check for service being empty before searching new ones

If our regular expression matching found a service but there was also some non-regular expression rule in the file,
it would overwrite a potentially valid service match.

CCBUG: 372211

Differential Revision:
parent 95a8a620
......@@ -595,7 +595,7 @@ QUrl XWindowTasksModel::Private::windowUrl(WId window)
if (!mapped.isEmpty()) {
if (!mapped.isEmpty() && services.empty()) {
services = KServiceTypeTrader::self()->query(QStringLiteral("Application"), QStringLiteral("exist Exec and ('%1' =~ DesktopEntryName)").arg(mapped));
Markdown is supported
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