From: Peter Penz Date: Sat, 20 Jun 2009 16:21:17 +0000 (+0000) Subject: Preview generators might send a null image, so show the default icon as fallback. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/374f5674adb0807043fba24f685108796381032e Preview generators might send a null image, so show the default icon as fallback. BUG: 196277 svn path=/trunk/KDE/kdebase/apps/; revision=984359 --- diff --git a/src/tooltips/tooltipmanager.cpp b/src/tooltips/tooltipmanager.cpp index 489c6c2b6..67fbf2946 100644 --- a/src/tooltips/tooltipmanager.cpp +++ b/src/tooltips/tooltipmanager.cpp @@ -276,7 +276,7 @@ void ToolTipManager::startPreviewJob() void ToolTipManager::setPreviewPix(const KFileItem& item, const QPixmap& pixmap) { - if (m_item.url() != item.url()) { + if ((m_item.url() != item.url()) || pixmap.isNull()) { m_generatingPreview = false; return; }