summaryrefslogtreecommitdiff
path: root/src/gui/quitdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r--src/gui/quitdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp
index f8f37bdec..8e3bc4d25 100644
--- a/src/gui/quitdialog.cpp
+++ b/src/gui/quitdialog.cpp
@@ -26,6 +26,7 @@
#include "game.h"
#include "keydata.h"
#include "keyevent.h"
+#include "sound.h"
#include "gui/chatwindow.h"
#include "gui/npcdialog.h"
@@ -96,12 +97,15 @@ QuitDialog::QuitDialog(QuitDialog **const pointerToMe):
reflowLayout(200, 0);
setLocationRelativeTo(getParent());
setVisible(true);
+ sound.playGuiSound(SOUND_SHOW_WINDOW);
+// enableVisibleSound(true);
requestModalFocus();
mOkButton->requestFocus();
}
QuitDialog::~QuitDialog()
{
+ sound.playGuiSound(SOUND_HIDE_WINDOW);
if (mMyPointer)
*mMyPointer = nullptr;
// Optional widgets, so delete them by hand.