diff options
author | Weblate <noreply@weblate.org> | 2016-09-23 07:34:07 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2016-09-23 07:34:07 +0000 |
commit | c0d2b4d8d7c7c498ecd8b01fb3da0f93b53b3e60 (patch) | |
tree | 2c8d0d6eab74377d1d6645b90db9f430472212c6 /src-qt5/core-utils/lumina-search/MainUI.cpp | |
parent | Translated using Weblate (lumina_DESKTOP@sv (generated)) (diff) | |
parent | Large update to how XDGDesktop files are created/used. (diff) | |
download | lumina-c0d2b4d8d7c7c498ecd8b01fb3da0f93b53b3e60.tar.gz lumina-c0d2b4d8d7c7c498ecd8b01fb3da0f93b53b3e60.tar.bz2 lumina-c0d2b4d8d7c7c498ecd8b01fb3da0f93b53b3e60.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core-utils/lumina-search/MainUI.cpp')
-rw-r--r-- | src-qt5/core-utils/lumina-search/MainUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core-utils/lumina-search/MainUI.cpp b/src-qt5/core-utils/lumina-search/MainUI.cpp index 99b04b2b..93ee7411 100644 --- a/src-qt5/core-utils/lumina-search/MainUI.cpp +++ b/src-qt5/core-utils/lumina-search/MainUI.cpp @@ -169,8 +169,8 @@ void MainUI::foundSearchItem(QString path){ //Now setup the visuals if(path.simplified().endsWith(".desktop")){ bool ok = false; - XDGDesktop desk = LXDG::loadDesktopFile(path,ok); - if( !ok || !LXDG::checkValidity(desk) ){delete it; return; } //invalid file + XDGDesktop desk(path); + if( !desk.isValid() ){delete it; return; } //invalid file it->setText(desk.name); it->setIcon( LXDG::findIcon(desk.icon, "application-x-desktop") ); }else{ |