Qt: Only attempt to paint message when there is one

This commit is contained in:
Vicki Pfau 2019-05-10 11:24:23 -07:00
parent a66c45e12e
commit 375d092afb
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ void MessagePainter::redraw() {
} }
void MessagePainter::paint(QPainter* painter) { void MessagePainter::paint(QPainter* painter) {
painter->drawPixmap(m_local, m_pixmap); if (!m_message.text().isEmpty()) {
painter->drawPixmap(m_local, m_pixmap);
}
} }