mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-04-28 08:14:31 +00:00
fix image provider
This commit is contained in:
parent
5a0da4a523
commit
97d0b1ea42
@ -15,7 +15,14 @@ QPixmap ImageProvider::requestPixmap(const QString &id, QSize *size, const QSize
|
||||
|
||||
if (size)
|
||||
*size = QSize(width, height);
|
||||
if(!syncEngine->songImageByName(id, result)){
|
||||
|
||||
bool ok;
|
||||
int songId = id.toShort(&ok);
|
||||
|
||||
if(!ok)
|
||||
return QPixmap(1,1);
|
||||
|
||||
if(!syncEngine->songImageById(songId, result)){
|
||||
return QPixmap(1,1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user