diff --git a/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm b/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm index db2c89f..261f5d4 100644 --- a/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm +++ b/src/plugins/backends/osxnotificationcenter/osxnotificationcenter.mm @@ -113,7 +113,7 @@ BOOL installNSBundleHook() qCWarning(SNORE) << "Notification with following id is delivered or dismissed:" << notificationId; auto snoreNotification = m_IdToNotification.take(notificationId); snoreNotification.removeActiveIn(notificationCenter); - snoreNotification.removeActiveIn(&SnoreCore::instance()); + snoreNotification.removeActiveIn(notificationCenter->getSnoreCore()); }); } @end