From 2550a94f05e51808f22a5803c095fd134d4d81a2 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 23 Apr 2013 00:45:37 -0400 Subject: fix omitting custom sounds --- src/common/text.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/common') diff --git a/src/common/text.c b/src/common/text.c index deb3c408..709e05ef 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -2187,12 +2187,15 @@ char *sound_files[NUM_XP]; void sound_beep (session *sess) { - if (sound_files[XP_TE_BEEP] && sound_files[XP_TE_BEEP][0]) - /* user defined beep _file_ */ - sound_play_event (XP_TE_BEEP); - else - /* system beep */ - fe_beep (sess); + if (!prefs.hex_gui_focus_omitalerts || !fe_gui_info (sess, 0) == 1) + { + if (sound_files[XP_TE_BEEP] && sound_files[XP_TE_BEEP][0]) + /* user defined beep _file_ */ + sound_play_event (XP_TE_BEEP); + else + /* system beep */ + fe_beep (sess); + } } static char * -- cgit 1.4.1