aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-search
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core-utils/lumina-search')
-rw-r--r--src-qt5/core-utils/lumina-search/Worker.cpp6
-rw-r--r--src-qt5/core-utils/lumina-search/Worker.h3
2 files changed, 4 insertions, 5 deletions
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<XDGDesktop*> apps = LXDG::systemDesktopFiles();
+ XDGDesktopList APPS;
+ APPS.updateList();
+ QList<XDGDesktop*> apps = APPS.apps(false,false);
for(int i=0; i<apps.length(); i++){
applist << ":::1:::"+apps[i]->name+":::2:::"+apps[i]->genericName+":::3:::"+apps[i]->comment+":::4:::"+apps[i]->filePath;
}
stopsearch = false;
- //Clean up all the apps structures
- for(int i=0; i<apps.length(); i++){ apps[i]->deleteLater(); }
}
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
bgstack15