From 637d9551aa5abc94c7f3ffe20bbac900414b21c2 Mon Sep 17 00:00:00 2001 From: Max Risuhin Date: Mon, 15 Oct 2018 13:41:34 +0300 Subject: [PATCH] Get relevant SnoreCore instance in osxnotificationcenter backend Signed-off-by: Max Risuhin --- .../backends/osxnotificationcenter/osxnotificationcenter.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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