aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp')
-rw-r--r--lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp b/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
index d29d4354..163f7c0a 100644
--- a/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
+++ b/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
@@ -191,7 +191,11 @@ void LDeskBarPlugin::desktopChanged(){
videoM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) );
}else if(type.startsWith("image/")){
//Add it to pictureM
- pictureM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) );
+ if(LUtils::imageExtensions().contains(path.section("/",-1).section(".",-1).toLower()) ){
+ pictureM->addAction( newAction(path, name, QIcon(path)) );
+ }else{
+ pictureM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) );
+ }
}else if(type.startsWith("text/")){
//Add it to docM
docM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) );
bgstack15