From 00fcc7da2f9aa1ed98794bf4f3487237cc1c3a47 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 27 Feb 2014 11:14:52 -0500 Subject: when a notify action is activated, call stop_audio_loop() in case the notify server doesn't also send back a 'closed' signal. --- src/snap.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/snap.cpp b/src/snap.cpp index b1a2e51..5cf6063 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -160,12 +160,14 @@ struct SnapData void on_snap_show(NotifyNotification*, gchar* /*action*/, gpointer gdata) { + stop_alarm_sound(); auto data = static_cast(gdata); data->show(data->appointment); } void on_snap_dismiss(NotifyNotification*, gchar* /*action*/, gpointer gdata) { + stop_alarm_sound(); auto data = static_cast(gdata); data->dismiss(data->appointment); } -- cgit v1.2.3