Commit c4e163c4 authored by David Faure's avatar David Faure

Remove last traces of models that don't exist anymore

voiceAppListModel and gamesAppListModel were removed some time ago.

Fixes:
LauncherMenu.qml:60: TypeError: Cannot call method 'loadApplications' of undefined
parent 5ecd4701
...@@ -50,8 +50,6 @@ FocusScope { ...@@ -50,8 +50,6 @@ FocusScope {
Component.onCompleted: { Component.onCompleted: {
root.forceActiveFocus(); root.forceActiveFocus();
plasmoid.nativeInterface.applicationListModel.loadApplications(); plasmoid.nativeInterface.applicationListModel.loadApplications();
plasmoid.nativeInterface.voiceAppListModel.loadApplications();
plasmoid.nativeInterface.gamesAppListModel.loadApplications();
root.activateAppView(); root.activateAppView();
} }
...@@ -61,7 +59,7 @@ FocusScope { ...@@ -61,7 +59,7 @@ FocusScope {
root.activateAppView() root.activateAppView()
} }
} }
Connections { Connections {
target: root target: root
onActivateTopNavBar: { onActivateTopNavBar: {
......
...@@ -108,7 +108,7 @@ void ApplicationListModel::loadApplications() ...@@ -108,7 +108,7 @@ void ApplicationListModel::loadApplications()
while (!subGroupList.isEmpty()) { while (!subGroupList.isEmpty()) {
KSycocaEntry::Ptr groupEntry = subGroupList.first(); KSycocaEntry::Ptr groupEntry = subGroupList.first();
subGroupList.pop_front(); subGroupList.pop_front();
if (groupEntry->isType(KST_KServiceGroup)) { if (groupEntry->isType(KST_KServiceGroup)) {
KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup* >(groupEntry.data())); KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup* >(groupEntry.data()));
...@@ -125,13 +125,13 @@ void ApplicationListModel::loadApplications() ...@@ -125,13 +125,13 @@ void ApplicationListModel::loadApplications()
} else if (entry->property("Exec").isValid()) { } else if (entry->property("Exec").isValid()) {
qDebug() << entry->property("Categories"); qDebug() << entry->property("Categories");
KService::Ptr service(static_cast<KService* >(entry.data())); KService::Ptr service(static_cast<KService* >(entry.data()));
qDebug() << " desktopEntryName: " << service->desktopEntryName(); qDebug() << " desktopEntryName: " << service->desktopEntryName();
//else if (entry->property("Exec").isValid()) { //else if (entry->property("Exec").isValid()) {
// KService::Ptr service(static_cast<KService* >(entry.data())); // KService::Ptr service(static_cast<KService* >(entry.data()));
// qDebug() << " desktopEntryName: " << service->desktopEntryName(); // qDebug() << " desktopEntryName: " << service->desktopEntryName();
if (service->isApplication() && if (service->isApplication() &&
!blacklist.contains(service->desktopEntryName()) && !blacklist.contains(service->desktopEntryName()) &&
service->showOnCurrentPlatform() && service->showOnCurrentPlatform() &&
...@@ -301,4 +301,4 @@ void ApplicationListModel::setAppOrder(const QStringList &order) ...@@ -301,4 +301,4 @@ void ApplicationListModel::setAppOrder(const QStringList &order)
++i; ++i;
} }
emit appOrderChanged(); emit appOrderChanged();
} }
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