--- a/src/gui/image/qpixmap.cpp Fri Sep 17 08:34:18 2010 +0300
+++ b/src/gui/image/qpixmap.cpp Mon Oct 04 01:19:32 2010 +0300
@@ -830,15 +830,17 @@
return false;
QFileInfo info(fileName);
- if (!info.exists())
- return false;
-
QString key = QLatin1Literal("qt_pixmap")
% info.absoluteFilePath()
% HexString<uint>(info.lastModified().toTime_t())
% HexString<quint64>(info.size())
% HexString<uint>(data ? data->pixelType() : QPixmapData::PixmapType);
+ // Note: If no extension is provided, we try to match the
+ // file against known plugin extensions
+ if (!info.completeSuffix().isEmpty() && !info.exists())
+ return false;
+
if (QPixmapCache::find(key, *this))
return true;