Changeset 14220b49


Ignore:
Timestamp:
08/22/14 10:13:36 (6 weeks ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.3
Children:
0765b86
Parents:
201757f
Message:

Update the mime icon fetching to properly use the "unknown" icon if there is no mime type found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lumina/libLumina/LuminaXDG.cpp

    r553a211 r14220b49  
    342342  if(mime.isEmpty()){ mime = LXDG::findAppMimeForFile(extension.toLower()); } 
    343343  mime.replace("/","-"); //translate to icon mime name 
    344   ico = LXDG::findIcon(mime, "unknown"); //use the "unknown" mimetype icon as fallback   
     344  if(!mime.isEmpty()){ ico = LXDG::findIcon(mime, "unknown");} //use the "unknown" mimetype icon as fallback     
    345345  if(ico.isNull()){ ico = LXDG::findIcon("unknown",""); } //just in case 
    346346  return ico; 
Note: See TracChangeset for help on using the changeset viewer.