Commit 9856de8e authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix variable scope

parent a1ab2d2d
...@@ -113,7 +113,6 @@ void ApplicationListModel::loadApplications() ...@@ -113,7 +113,6 @@ void ApplicationListModel::loadApplications()
for(KServiceGroup::List::ConstIterator it = entryGroupList.constBegin(); it != entryGroupList.constEnd(); it++) { for(KServiceGroup::List::ConstIterator it = entryGroupList.constBegin(); it != entryGroupList.constEnd(); it++) {
KSycocaEntry::Ptr entry = (*it); KSycocaEntry::Ptr entry = (*it);
ApplicationData data;
if (entry->isType(KST_KServiceGroup)) { if (entry->isType(KST_KServiceGroup)) {
KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup* >(entry.data())); KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup* >(entry.data()));
...@@ -131,6 +130,7 @@ void ApplicationListModel::loadApplications() ...@@ -131,6 +130,7 @@ void ApplicationListModel::loadApplications()
bl << service->desktopEntryName(); bl << service->desktopEntryName();
ApplicationData data;
data.name = service->name(); data.name = service->name();
data.icon = service->icon(); data.icon = service->icon();
data.storageId = service->storageId(); data.storageId = service->storageId();
......
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