From 3128cc4f5b3fe73d352d748008b3bc870836009f Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Thu, 30 Dec 2004 10:56:29 +0000 Subject: - added exception handling to setup dialog while starting sound --- src/gui/setup.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui') 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(); -- cgit v1.2.3-70-g09d2