From 9856de8e90709de1d96cbf1b9a362c031ade180b Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 16 Feb 2016 18:54:34 +0100 Subject: [PATCH] Fix variable scope --- containments/homescreen/applicationlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index 16c40862..7313a9ce 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -113,7 +113,6 @@ void ApplicationListModel::loadApplications() for(KServiceGroup::List::ConstIterator it = entryGroupList.constBegin(); it != entryGroupList.constEnd(); it++) { KSycocaEntry::Ptr entry = (*it); - ApplicationData data; if (entry->isType(KST_KServiceGroup)) { KServiceGroup::Ptr serviceGroup(static_cast(entry.data())); @@ -131,6 +130,7 @@ void ApplicationListModel::loadApplications() bl << service->desktopEntryName(); + ApplicationData data; data.name = service->name(); data.icon = service->icon(); data.storageId = service->storageId();