mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-28 07:14:46 +00:00
crash--
This commit is contained in:
parent
e0b9dc2142
commit
6a22d1e3f6
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ void ApplicationListModel::loadApplications()
|
||||||
KService::Ptr service(static_cast<KService* >(entry.data()));
|
KService::Ptr service(static_cast<KService* >(entry.data()));
|
||||||
if (service->isApplication()) {
|
if (service->isApplication()) {
|
||||||
KPluginInfo plugin(service);
|
KPluginInfo plugin(service);
|
||||||
|
if (!plugin.isValid()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
data.name = plugin.name();
|
data.name = plugin.name();
|
||||||
data.icon = plugin.icon();
|
data.icon = plugin.icon();
|
||||||
data.storageId = service->storageId();
|
data.storageId = service->storageId();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue