From adfd993f6bf408062059446e45e238554fe6fcf3 Mon Sep 17 00:00:00 2001 From: vtliem Date: Wed, 27 Jun 2012 17:49:38 +0900 Subject: [PATCH] Check for valid icon file --- mediawiki.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediawiki.cc b/mediawiki.cc index 3d0c750c..5d2b897a 100644 --- a/mediawiki.cc +++ b/mediawiki.cc @@ -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");