dont hash if FreedesktopImageHint is created from a Image

This commit is contained in:
Patrick von Reth 2010-10-31 14:00:14 +01:00
parent 3b314daa6d
commit 0761bb86db

View File

@ -83,8 +83,6 @@ FreedesktopImageHint::FreedesktopImageHint(const QImage &img)
FreedesktopNotification::registerTypes(); FreedesktopNotification::registerTypes();
QImage image(img.convertToFormat(QImage::Format_ARGB32)); QImage image(img.convertToFormat(QImage::Format_ARGB32));
this->imageData.append((char*)image.rgbSwapped().bits(),image.numBytes()); this->imageData.append((char*)image.rgbSwapped().bits(),image.numBytes());
if(hasedImages.contains(computeHash()))
return;
width=image.width(); width=image.width();
height=image.height(); height=image.height();
rowstride=image.bytesPerLine(); rowstride=image.bytesPerLine();