aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-search
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-09-23 09:44:43 -0400
committerKen Moore <ken@pcbsd.org>2016-09-23 09:44:43 -0400
commit63069bcc5f0cd5dd0f489ebdbd0c12250e01bd03 (patch)
tree881062a48de5940324231859fbad0d9d89dc33c6 /src-qt5/core-utils/lumina-search
parentLarge update to how XDGDesktop files are created/used. (diff)
downloadlumina-63069bcc5f0cd5dd0f489ebdbd0c12250e01bd03.tar.gz
lumina-63069bcc5f0cd5dd0f489ebdbd0c12250e01bd03.tar.bz2
lumina-63069bcc5f0cd5dd0f489ebdbd0c12250e01bd03.zip
Finish up the depretiation of the old systemapps fetching function.
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