summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYuGiOhJCJ <yugiohjcj@1s.fr>2017-06-06 20:28:09 +0200
committerPatrick Griffis <tingping@tingping.se>2017-06-10 16:18:55 -0400
commit2dd5f8788c1f9c6dd93356544ad04c946bc68fff (patch)
tree4c53283ad362731c28b361f41d018f95b2c2565b /src
parent76430228e12c6b71359a50bf7e8b4c3dd26043c9 (diff)
Disable custom sounds when away_omit_alerts enabled
Closes #2012
Diffstat (limited to 'src')
-rw-r--r--src/common/text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 48b81ea5..60a069c9 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -2194,6 +2194,9 @@ sound_play (const char *file, gboolean quiet)
 	char *cmd;
 #endif
 
+	if (prefs.hex_away_omit_alerts)
+		return;
+
 	/* the pevents GUI editor triggers this after removing a soundfile */
 	if (!file[0])
 	{