diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-07 01:37:21 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-07 01:37:21 +0200 |
commit | 6003bf81107dd9be51589c074b74c5af82bfc8ab (patch) | |
tree | 502193634979c12b45c2a013668d21556e2c7050 /libsowatch/notificationsmodel.cpp | |
parent | ae37832316d905889c82706b351b3c037c9e1ab6 (diff) | |
download | sowatch-6003bf81107dd9be51589c074b74c5af82bfc8ab.tar.gz sowatch-6003bf81107dd9be51589c074b74c5af82bfc8ab.zip |
testing qml notifications
Diffstat (limited to 'libsowatch/notificationsmodel.cpp')
-rw-r--r-- | libsowatch/notificationsmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsowatch/notificationsmodel.cpp b/libsowatch/notificationsmodel.cpp index 259ac93..ce0a2fb 100644 --- a/libsowatch/notificationsmodel.cpp +++ b/libsowatch/notificationsmodel.cpp @@ -96,7 +96,9 @@ int NotificationsModel::fullCountByType(Notification::Type type) const { int count = 0; Q_FOREACH(const Notification *n, _list[type]) { - count += n->count(); + if (n->priority() != Notification::Silent) { + count += n->count(); + } } return count; } |