From efc376138a0198adcd815cee9ddac8ef7a744d01 Mon Sep 17 00:00:00 2001 From: zneix Date: Sat, 31 Jul 2021 01:41:21 +0200 Subject: [PATCH] Replace QPixmap == comparison with QImage == Reference: - https://github.com/qt/qtbase/commit/b39685d4c26009d6f85cbbee287d5647a7bd6fe4 --- src/messages/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/Image.cpp b/src/messages/Image.cpp index 1b4f11645..4cd3c5678 100644 --- a/src/messages/Image.cpp +++ b/src/messages/Image.cpp @@ -444,7 +444,7 @@ bool Image::operator==(const Image &other) const return true; if (!this->url_.string.isEmpty() && this->url_ == other.url_) return true; - if (this->frames_->first() == other.frames_->first()) + if (this->frames_->first()->toImage() == other.frames_->first()->toImage()) return true; return false;