diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 15:30:28 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 15:30:28 +0200 |
commit | ef8a06f4cf720e293534d591069c4c4295dd21a1 (patch) | |
tree | 49dae3cf0816fe586da75e2f86726c9306d2f98f | |
parent | 29835cba48edf3d4b347bed006160ac3b0b0338f (diff) | |
download | salmeta-ef8a06f4cf720e293534d591069c4c4295dd21a1.tar.gz salmeta-ef8a06f4cf720e293534d591069c4c4295dd21a1.zip |
do not show notification count if it's 1
-rw-r--r-- | src/controller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index ad85183..0f0fb1a 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -233,7 +233,7 @@ void Controller::handleIncomingNotification(const QString &sender, const QIcon & QString title = summary; bool title_drawn_fully = false; - if (count > 0) { + if (count > 1) { title = QString("%1 %2").arg(count).arg(summary); } |