diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-30 16:50:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-30 16:50:50 +0300 |
commit | 143e04546197d75279d41e9eefe0fca4478673d4 (patch) | |
tree | 0a78eb7251943571342bba70210161af603473d8 /src/gui/confirmdialog.cpp | |
parent | dbe40332cd904f8e48504a2e8a3e7f74f4619712 (diff) | |
download | plus-143e04546197d75279d41e9eefe0fca4478673d4.tar.gz plus-143e04546197d75279d41e9eefe0fca4478673d4.tar.bz2 plus-143e04546197d75279d41e9eefe0fca4478673d4.tar.xz plus-143e04546197d75279d41e9eefe0fca4478673d4.zip |
Add ability to open support page if error happend.
Diffstat (limited to 'src/gui/confirmdialog.cpp')
-rw-r--r-- | src/gui/confirmdialog.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/confirmdialog.cpp b/src/gui/confirmdialog.cpp index cef2237d7..a2441c63b 100644 --- a/src/gui/confirmdialog.cpp +++ b/src/gui/confirmdialog.cpp @@ -22,8 +22,6 @@ #include "gui/confirmdialog.h" -#include "soundmanager.h" - #include "gui/gui.h" #include "gui/widgets/button.h" @@ -36,8 +34,8 @@ #include "debug.h" ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg, - const bool ignore, const bool modal, - Window *const parent): + const std::string &soundEvent, const bool ignore, + const bool modal, Window *const parent): Window(title, modal, parent, "confirm.xml"), gcn::ActionListener(), mTextBox(new TextBox(this)) @@ -100,7 +98,7 @@ ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg, } setVisible(true); yesButton->requestFocus(); - soundManager.playGuiSound(SOUND_REQUEST); + soundManager.playGuiSound(soundEvent); } void ConfirmDialog::action(const gcn::ActionEvent &event) |