From 32f3186f842909429d44502fe08d8e6703fc1049 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sat, 7 Apr 2012 00:30:37 +0000 Subject: [PATCH] (trunk gtk) fix #4849 'Transmission-gtk Ignores Notification Sound Setting' with a patch from Jan Varho --- gtk/notify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/notify.c b/gtk/notify.c index 5b816be20..121c2ea30 100644 --- a/gtk/notify.c +++ b/gtk/notify.c @@ -189,7 +189,9 @@ gtr_notify_torrent_completed( TrCore * core, int torrent_id ) TrNotification * n; tr_torrent * tor; const char * cmd = gtr_pref_string_get( PREF_KEY_TORRENT_COMPLETE_SOUND_COMMAND ); - g_spawn_command_line_async( cmd, NULL ); + + if( gtr_pref_flag_get( PREF_KEY_TORRENT_COMPLETE_SOUND_ENABLED ) ) + g_spawn_command_line_async( cmd, NULL ); if( ! gtr_pref_flag_get( PREF_KEY_TORRENT_COMPLETE_NOTIFICATION_ENABLED ) ) return;