Do not set notification identifier

Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
This commit is contained in:
Max Risuhin 2018-10-14 17:16:22 +03:00
parent 281517c643
commit ceebcfc209
No known key found for this signature in database
GPG Key ID: BF733F5ACA0B4448

View File

@ -149,12 +149,13 @@ OSXNotificationCenter::~OSXNotificationCenter()
void OSXNotificationCenter::slotNotify(Snore::Notification notification)
{
qDebug() << "!!! OSXNotificationCenter::slotNotify";
NSUserNotification * osxNotification = [[[NSUserNotification alloc] init] autorelease];
NSString * notificationId = [NSString stringWithFormat:@"%d",notification.id()];
osxNotification.title = notification.title().toNSString();
osxNotification.userInfo = [NSDictionary dictionaryWithObjectsAndKeys:notificationId, @"id", nil];
osxNotification.informativeText = notification.text().toNSString();
osxNotification.identifier = notificationId;
// osxNotification.identifier = notificationId;
// Add notification to mapper from id to Nofification / NSUserNotification
m_IdToNotification.insert(notification.id(), notification);