Fix #544
This commit is contained in:
parent
d34114d14c
commit
74c7c99511
|
@ -1218,7 +1218,14 @@ class MyForm(QtGui.QMainWindow):
|
||||||
if withMessagingMenu:
|
if withMessagingMenu:
|
||||||
n = Notify.Notification.new(
|
n = Notify.Notification.new(
|
||||||
title, subtitle, 'notification-message-email')
|
title, subtitle, 'notification-message-email')
|
||||||
|
try:
|
||||||
n.show()
|
n.show()
|
||||||
|
except:
|
||||||
|
# n.show() has been known to throw this exception:
|
||||||
|
# gi._glib.GError: GDBus.Error:org.freedesktop.Notifications.
|
||||||
|
# MaxNotificationsExceeded: Exceeded maximum number of
|
||||||
|
# notifications
|
||||||
|
pass
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
self.tray.showMessage(title, subtitle, 1, 2000)
|
self.tray.showMessage(title, subtitle, 1, 2000)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user