diff options
author | TingPing <tingping@tingping.se> | 2013-04-23 00:45:37 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-04-23 00:45:37 -0400 |
commit | 2550a94f05e51808f22a5803c095fd134d4d81a2 (patch) | |
tree | b3593adc0f2189f7e709429946af294f294275e3 /src/fe-gtk/fe-gtk.c | |
parent | bd73c80152cf61ea950f5e93c0d78a68faf530bd (diff) |
fix omitting custom sounds
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index ec947617..7ad7254b 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -671,16 +671,13 @@ fe_beep (session *sess) { char *beepfile; - if (!prefs.hex_gui_focus_omitalerts || !fe_gui_info (sess, 0) == 1) - { #ifdef WIN32 /* keep this in sync with cfgfiles.c! */ - beepfile = g_build_filename (HEXCHATSHAREDIR, "share", "sounds", "beep.wav", NULL); + beepfile = g_build_filename (HEXCHATSHAREDIR, "share", "sounds", "beep.wav", NULL); #else - beepfile = g_build_filename (HEXCHATSHAREDIR, "sounds", "freedesktop", "stereo", "hexchat_beep.wav", NULL); + beepfile = g_build_filename (HEXCHATSHAREDIR, "sounds", "freedesktop", "stereo", "hexchat_beep.wav", NULL); #endif - sound_play (beepfile, TRUE, TRUE); - g_free (beepfile); - } + sound_play (beepfile, TRUE, TRUE); + g_free (beepfile); } void |