aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-09-23 23:45:20 +0000
committerWeblate <noreply@weblate.org>2016-09-23 23:45:20 +0000
commitcb2aab6a2437990cb10b0c980ad4f9091098b6b6 (patch)
treef55a78353fc8a8ef2e27b8a4f47fa6a2e7eb0c65 /src-qt5/core-utils
parentTranslated using Weblate (lumina_FM@ca (generated)) (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-cb2aab6a2437990cb10b0c980ad4f9091098b6b6.tar.gz
lumina-cb2aab6a2437990cb10b0c980ad4f9091098b6b6.tar.bz2
lumina-cb2aab6a2437990cb10b0c980ad4f9091098b6b6.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core-utils')
-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