summary refs log tree commit diff
path: root/src/notifications/ManagerMac.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-03-01 20:07:53 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-17 19:18:06 +0100
commit64dd10a6a0066dc209196819534cc54c89628f33 (patch)
treefec60ac06dfa4faf3b3fcb33b98083b7edca6378 /src/notifications/ManagerMac.cpp
parentUse better method of resizing images (diff)
downloadnheko-64dd10a6a0066dc209196819534cc54c89628f33.tar.xz
Only try to display images if they exist
Diffstat (limited to 'src/notifications/ManagerMac.cpp')
-rw-r--r--src/notifications/ManagerMac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notifications/ManagerMac.cpp b/src/notifications/ManagerMac.cpp

index 8b6b3bd9..7e3ad309 100644 --- a/src/notifications/ManagerMac.cpp +++ b/src/notifications/ManagerMac.cpp
@@ -58,6 +58,6 @@ NotificationsManager::postNotification(const mtx::responses::Notification &notif const QString messageInfo = (isReply ? tr("%1 replied to a message") : tr("%1 sent a message")).arg(sender); objCxxPostNotification( - room_name, messageInfo, formatNotification(notification), image); + room_name, messageInfo, formatNotification(notification), (image != nullptr && !image->isNull()) ? image : nullptr); } }