Fixes the previous "Disabled message" behaviour

Fixes #295
This commit is contained in:
Rasmus Karlsson
2018-03-31 11:32:29 +02:00
committed by fourtf
parent 7d4cebbc96
commit 010c061a25
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ void MessageLayout::paint(QPainter &painter, int y, int messageIndex, Selection
// painter.drawPixmap(0, y, this->container.width, this->container.getHeight(), *pixmap);
// draw disabled
if (this->message->flags & Message::Disabled) {
if (this->message->flags.HasFlag(Message::Disabled)) {
painter.fillRect(0, y, pixmap->width(), pixmap->height(), themeManager.messages.disabled);
}