diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-30 10:56:29 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-30 10:56:29 +0000 |
commit | 3128cc4f5b3fe73d352d748008b3bc870836009f (patch) | |
tree | 3ec4083ecf67d2bec6e85721eb776b749759e237 /src/gui/setup.cpp | |
parent | 7cf46d715e08b8a355ef9ea7be5421a2710d65fc (diff) | |
download | mana-client-3128cc4f5b3fe73d352d748008b3bc870836009f.tar.gz mana-client-3128cc4f5b3fe73d352d748008b3bc870836009f.tar.bz2 mana-client-3128cc4f5b3fe73d352d748008b3bc870836009f.tar.xz mana-client-3128cc4f5b3fe73d352d748008b3bc870836009f.zip |
- added exception handling to setup dialog while starting sound
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r-- | src/gui/setup.cpp | 7 |
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(); |