Skip to content
Snippets Groups Projects
Commit 4314adf0 authored by hluk's avatar hluk
Browse files

Always set non-empty message (fixes Windows notifications)

parent b41c9fe5
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,15 @@ void Notification::update()
}
m_notification->setTitle(m_title);
#ifdef Q_OS_WIN
// On Windows, notification doesn't show up if the message is empty.
if (m_message.isEmpty())
m_notification->setText(QLatin1String("-"));
else
m_notification->setText(m_message);
#else
m_notification->setText(m_message);
#endif
if (m_pixmap.isNull() && m_iconId != 0) {
const auto height = 64;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment