mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
SpeedDial: Fix displaying broken page image
This commit is contained in:
parent
335c6b66c5
commit
1710e284c8
|
@ -338,7 +338,7 @@ void SpeedDial::thumbnailCreated(const QPixmap &pixmap)
|
||||||
QString fileName = m_thumbnailsDir + QCryptographicHash::hash(url.toUtf8(), QCryptographicHash::Md4).toHex() + ".png";
|
QString fileName = m_thumbnailsDir + QCryptographicHash::hash(url.toUtf8(), QCryptographicHash::Md4).toHex() + ".png";
|
||||||
|
|
||||||
if (pixmap.isNull()) {
|
if (pixmap.isNull()) {
|
||||||
fileName = "qrc:/html/broken-page.png";
|
fileName = ":/html/broken-page.png";
|
||||||
title = tr("Unable to load");
|
title = tr("Unable to load");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user