aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-12 00:52:59 -0400
committerKen Moore <ken@pcbsd.org>2015-03-12 00:52:59 -0400
commit73d301565ceb3b238b03d1eb55862bd897a1d118 (patch)
tree6f633507ae84a6b102b517f3b7898d077cd665f0 /lumina-desktop/desktop-plugins
parentMake sure to load any specific icons for *.desktop files in lumina-fm. (diff)
downloadlumina-73d301565ceb3b238b03d1eb55862bd897a1d118.tar.gz
lumina-73d301565ceb3b238b03d1eb55862bd897a1d118.tar.bz2
lumina-73d301565ceb3b238b03d1eb55862bd897a1d118.zip
Add some debugging to the system tray image painting routine.
Diffstat (limited to 'lumina-desktop/desktop-plugins')
-rw-r--r--lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
index e13a1908..018f96e8 100644
--- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
@@ -55,7 +55,11 @@ void DesktopViewPlugin::updateContents(){
XDGDesktop desk = LXDG::loadDesktopFile(files[i].absoluteFilePath(), ok);
if(ok){
it->setIcon( LXDG::findIcon(desk.icon,"unknown") );
- it->setText( desk.name );
+ if(desk.name.isEmpty()){
+ it->setText( files[i].fileName() );
+ }else{
+ it->setText( desk.name );
+ }
}else{
//Revert back to a standard file handling
it->setIcon( LXDG::findMimeIcon(files[i].fileName()) );
bgstack15