fix omitting custom sounds

This commit is contained in:
TingPing
2013-04-23 00:45:37 -04:00
parent bd73c80152
commit 2550a94f05
2 changed files with 13 additions and 13 deletions

View File

@@ -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