diff options
| author | Jonathan Thomas <echidnaman@kubuntu.org> | 2012-03-23 00:24:36 (GMT) |
|---|---|---|
| committer | Jonathan Thomas <echidnaman@kubuntu.org> | 2012-03-23 00:24:36 (GMT) |
| commit | f8353c57b1a09da0ecf04e8cf6f7def7581310ec (patch) | |
| tree | e36a17b153973acfd8469049d6550e258af9c595 | |
| parent | d4790ca44893d08b6661f1270f42fe1efb5d2a41 (diff) | |
Continue through the loop when we encounter a bad desktop file, not break.
| -rw-r--r-- | libmuon/Application.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libmuon/Application.cpp b/libmuon/Application.cpp index 9f31e09..11e668b 100644 --- a/libmuon/Application.cpp +++ b/libmuon/Application.cpp @@ -467,18 +467,18 @@ void Application::populateZeitgeistInfo() QString desktopFile; foreach (const QString &desktop, package()->installedFilesList().filter(".desktop")) { - KService::Ptr service = KService::serviceByDesktopPath(desktop); - if (!service) { - break; - } + KService::Ptr service = KService::serviceByDesktopPath(desktop); + if (!service) { + continue; + } - if (service->isApplication() && - !service->noDisplay() && - !service->exec().isEmpty()) - { - desktopFile = desktop.split('/').last(); - break; - } + if (service->isApplication() && + !service->noDisplay() && + !service->exec().isEmpty()) + { + desktopFile = desktop.split('/').last(); + break; + } } QtZeitgeist::init(); |
