aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-search/Worker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core-utils/lumina-search/Worker.cpp')
-rw-r--r--src-qt5/core-utils/lumina-search/Worker.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src-qt5/core-utils/lumina-search/Worker.cpp b/src-qt5/core-utils/lumina-search/Worker.cpp
index b414a72f..025bcc1e 100644
--- a/src-qt5/core-utils/lumina-search/Worker.cpp
+++ b/src-qt5/core-utils/lumina-search/Worker.cpp
@@ -6,11 +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();
+ QList<XDGDesktop*> apps = LXDG::systemDesktopFiles();
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;
+ 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(){
@@ -108,4 +110,4 @@ void Worker::beginsearch(){
}
emit SearchUpdate( tr("Search Finished") );
emit SearchDone();
-} \ No newline at end of file
+}
bgstack15