@ -83,19 +83,6 @@ NotificationsModel::Private::~Private()
void NotificationsModel : : Private : : onNotificationAdded ( const Notification & notification )
void NotificationsModel : : Private : : onNotificationAdded ( const Notification & notification )
{
{
// If we get the same notification in succession, just compress them into one
if ( ! notifications . isEmpty ( ) ) {
const Notification & lastNotification = notifications . constLast ( ) ;
if ( lastNotification . applicationName ( ) = = notification . applicationName ( )
& & lastNotification . summary ( ) = = notification . summary ( )
& & lastNotification . body ( ) = = notification . body ( )
& & lastNotification . desktopEntry ( ) = = notification . desktopEntry ( )
& & lastNotification . applicationName ( ) = = notification . applicationName ( ) ) {
onNotificationReplaced ( lastNotification . id ( ) , notification ) ;
return ;
}
}
// Once we reach a certain insane number of notifications discard some old ones
// Once we reach a certain insane number of notifications discard some old ones
// as we keep pixmaps around etc
// as we keep pixmaps around etc
if ( notifications . count ( ) > = s_notificationsLimit ) {
if ( notifications . count ( ) > = s_notificationsLimit ) {