Check for valid icon file

This commit is contained in:
vtliem 2012-06-27 17:49:38 +09:00
parent 71399d5eb2
commit adfd993f6b

View file

@ -54,7 +54,7 @@ public:
if( !icon.isNull() && !icon.isEmpty() )
{
QFileInfo fInfo( QDir( Config::getConfigDir() ), icon );
if( fInfo.exists() )
if( fInfo.isFile() )
return QIcon( fInfo.absoluteFilePath() );
}
return QIcon(":/icons/icon32_wiki.png");