diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index 6a6e96ff..f0b37fdf 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -79,7 +79,7 @@ QHash ApplicationListModel::roleNames() const {ApplicationStartupNotifyRole, QByteArrayLiteral("applicationStartupNotify")}, {ApplicationLocationRole, QByteArrayLiteral("applicationLocation")}, {ApplicationRunningRole, QByteArrayLiteral("applicationRunning")}, - {ApplicationUniqueIdRole, QByteArrayLiteral("applicationUniqueId")} + {ApplicationUniqueIdRole, QByteArrayLiteral("applicationUniqueId")}, }; } @@ -190,11 +190,10 @@ void ApplicationListModel::loadApplications() } else if (entry->property(QStringLiteral("Exec")).isValid()) { KService::Ptr service(static_cast(entry.data())); - if (service->isApplication() && - !blacklist.contains(service->desktopEntryName()) && - service->showOnCurrentPlatform() && - !service->property(QStringLiteral("Terminal"), QVariant::Bool).toBool()) { - + if (service->isApplication() // + && !blacklist.contains(service->desktopEntryName()) // + && service->showOnCurrentPlatform() // + && !service->property(QStringLiteral("Terminal"), QVariant::Bool).toBool()) { ApplicationData data; data.name = service->name(); data.icon = service->icon(); diff --git a/containments/homescreen/applicationlistmodel.h b/containments/homescreen/applicationlistmodel.h index 31374b44..fd067e6a 100644 --- a/containments/homescreen/applicationlistmodel.h +++ b/containments/homescreen/applicationlistmodel.h @@ -39,7 +39,7 @@ public: enum LauncherLocation { Grid = 0, Favorites, - Desktop + Desktop, }; Q_ENUM(LauncherLocation) @@ -63,7 +63,7 @@ public: ApplicationStartupNotifyRole, ApplicationLocationRole, ApplicationRunningRole, - ApplicationUniqueIdRole + ApplicationUniqueIdRole, }; ApplicationListModel(HomeScreen *parent = nullptr);