From 63069bcc5f0cd5dd0f489ebdbd0c12250e01bd03 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 23 Sep 2016 09:44:43 -0400 Subject: Finish up the depretiation of the old systemapps fetching function. --- src-qt5/core-utils/lumina-search/Worker.cpp | 6 +++--- src-qt5/core-utils/lumina-search/Worker.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src-qt5/core-utils/lumina-search') diff --git a/src-qt5/core-utils/lumina-search/Worker.cpp b/src-qt5/core-utils/lumina-search/Worker.cpp index 025bcc1e..0d50d4b8 100644 --- a/src-qt5/core-utils/lumina-search/Worker.cpp +++ b/src-qt5/core-utils/lumina-search/Worker.cpp @@ -6,13 +6,13 @@ Worker::Worker(QObject *parent) : QObject(parent){ //Get the list of all applications and save them in an easily-searchable form - QList apps = LXDG::systemDesktopFiles(); + XDGDesktopList APPS; + APPS.updateList(); + QList apps = APPS.apps(false,false); for(int i=0; iname+":::2:::"+apps[i]->genericName+":::3:::"+apps[i]->comment+":::4:::"+apps[i]->filePath; } stopsearch = false; - //Clean up all the apps structures - for(int i=0; ideleteLater(); } } Worker::~Worker(){ diff --git a/src-qt5/core-utils/lumina-search/Worker.h b/src-qt5/core-utils/lumina-search/Worker.h index 87cf1e3b..646fc416 100644 --- a/src-qt5/core-utils/lumina-search/Worker.h +++ b/src-qt5/core-utils/lumina-search/Worker.h @@ -30,7 +30,6 @@ private: bool stopsearch; QString sterm; bool sapp; - bool searchDir(QString); private slots: @@ -42,4 +41,4 @@ signals: void SearchDone(); }; -#endif \ No newline at end of file +#endif -- cgit