bugfix
This commit is contained in:
parent
12d3c68df3
commit
f558e1420a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue