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 0126330530
commit b176516c36
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}