From 375d092afbb30239b46e74ecbfd3a9e1a3737c3d Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 10 May 2019 11:24:23 -0700 Subject: [PATCH] Qt: Only attempt to paint message when there is one --- src/platform/qt/MessagePainter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/MessagePainter.cpp b/src/platform/qt/MessagePainter.cpp index e62afe8f4..ad43aeb49 100644 --- a/src/platform/qt/MessagePainter.cpp +++ b/src/platform/qt/MessagePainter.cpp @@ -79,7 +79,9 @@ void MessagePainter::redraw() { } void MessagePainter::paint(QPainter* painter) { - painter->drawPixmap(m_local, m_pixmap); + if (!m_message.text().isEmpty()) { + painter->drawPixmap(m_local, m_pixmap); + } }