diff --git a/spectral.pro b/spectral.pro index 82ccf1d..e7f8dc0 100644 --- a/spectral.pro +++ b/spectral.pro @@ -117,5 +117,6 @@ win32 { } mac { + QMAKE_LFLAGS += -framework Foundation -framework Cocoa SOURCES += src/notifications/managermac.mm } diff --git a/src/notifications/managermac.mm b/src/notifications/managermac.mm index d4cf6de..782be1f 100644 --- a/src/notifications/managermac.mm +++ b/src/notifications/managermac.mm @@ -30,6 +30,7 @@ NotificationsManager::postNotification( notif.title = roomName.toNSString(); notif.subtitle = QString("%1 sent a message").arg(senderName).toNSString(); notif.informativeText = text.toNSString(); + notif.soundName = NSUserNotificationDefaultSoundName; [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: notif]; [notif autorelease];