summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/setup.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 5be5fe5f..6d6cf848 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -157,7 +157,12 @@ void Setup::action(const std::string& eventId)
#ifndef WIN32
if (soundCheckBox->isMarked() == true) {
config.setValue("sound",1);
- sound.init(32, 20);
+ try {
+ sound.init(32, 20);
+ }catch(const char *err) {
+ ok("Sound Engine", err);
+ warning(err);
+ }
} else {
config.setValue("sound",0);
sound.close();