From d0fb463abb9e79606c9eb75b3a94331127cd5060 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 28 May 2015 09:56:15 -0400 Subject: Add a new LUtils::imageExtensions() function, and setup the lumina-desktop plugins to all use that for checking whether a thumbnail can be shown. Also add thumbnail support into the user button for favorite files. --- lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lumina-desktop/panel-plugins/desktopbar') 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)) ); -- cgit