Qt: Only attempt to paint message when there is one
Vicki Pfau vi@endrift.com
Fri, 10 May 2019 11:24:23 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
M
src/platform/qt/MessagePainter.cpp
→
src/platform/qt/MessagePainter.cpp
@@ -79,7 +79,9 @@ m_pixmap.setDevicePixelRatio(m_scaleFactor);
} void MessagePainter::paint(QPainter* painter) { - painter->drawPixmap(m_local, m_pixmap); + if (!m_message.text().isEmpty()) { + painter->drawPixmap(m_local, m_pixmap); + } }