Add more debug
BUG: 357
This commit is contained in:
committed by
craig.p.drummond
parent
be1d2584a9
commit
39c5006515
@@ -613,10 +613,12 @@ void ContextWidget::updateBackdrop()
|
||||
}
|
||||
}
|
||||
|
||||
QImage img(cacheFileName(currentArtist, false));
|
||||
QString cacheName=cacheFileName(currentArtist, false);
|
||||
QImage img(cacheName);
|
||||
if (img.isNull()) {
|
||||
getBackdrop();
|
||||
} else {
|
||||
DBUG << "Use cache file:" << cacheName;
|
||||
updateImage(img);
|
||||
QWidget::update();
|
||||
}
|
||||
@@ -992,8 +994,10 @@ void ContextWidget::downloadResponse()
|
||||
}
|
||||
|
||||
if (!saved) {
|
||||
QFile f(cacheFileName(currentArtist, true));
|
||||
QString cacheName=cacheFileName(currentArtist, true);
|
||||
QFile f(cacheName);
|
||||
if (f.open(QIODevice::WriteOnly)) {
|
||||
DBUG << "Saved backdrop to (cache)" << cacheName << "for artist" << currentArtist << ", current song" << currentSong.file;
|
||||
f.write(data);
|
||||
f.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user