Browse Source

telephony: check errors in showing notification

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
36bb41d082
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/telephony.vala

+ 5
- 1
src/telephony.vala View File

@ -78,7 +78,11 @@ class TelephonyHandler : Object, PacketHandlerInterface {
var notif = new Notify.Notification(summary, number, var notif = new Notify.Notification(summary, number,
"dialog-information"); "dialog-information");
notif.show();
try {
notif.show();
} catch (Error e) {
critical("failed to show notification: %s", e.message);
}
} }
} }

Loading…
Cancel
Save