This commit is contained in:
Patrick von Reth 2011-07-23 18:17:07 +02:00
parent 12d3c68df3
commit f558e1420a
1 changed files with 6 additions and 4 deletions

View File

@ -39,12 +39,14 @@ public:
{} {}
SnoreIconData(const QString &url){ SnoreIconData(const QString &url){
if(QFile(url).exists()){ if(url.startsWith(":/")){
_isLocalFile = true; qDebug()<<url<<"is resource";
_localFileName = url;
}else if(url.startsWith(":/")){
_img = QImage(url); _img = QImage(url);
_isLocalFile = false; _isLocalFile = false;
}else if(QFile(url).exists()){
qDebug()<<url<<"is local File icon";
_isLocalFile = true;
_localFileName = url;
} }
} }
~SnoreIconData() ~SnoreIconData()