mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-17 02:46:23 +00:00
dont hash if FreedesktopImageHint is created from a Image
This commit is contained in:
parent
3b314daa6d
commit
0761bb86db
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user