diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-04 01:47:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-04 01:47:16 +0300 |
commit | a78b3a34de86d181f845f352b3c4a58e6ff03872 (patch) | |
tree | 290e50c00f3abaa197df471111e3a7a45616f22a /src/gui/quitdialog.cpp | |
parent | 77cac1e6fd1b6fdf920b09a60ff1e5c60b3c4e84 (diff) | |
download | plus-a78b3a34de86d181f845f352b3c4a58e6ff03872.tar.gz plus-a78b3a34de86d181f845f352b3c4a58e6ff03872.tar.bz2 plus-a78b3a34de86d181f845f352b3c4a58e6ff03872.tar.xz plus-a78b3a34de86d181f845f352b3c4a58e6ff03872.zip |
Fix sounds in npc and quit dialogs.
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r-- | src/gui/quitdialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp index 8e3bc4d25..907a26493 100644 --- a/src/gui/quitdialog.cpp +++ b/src/gui/quitdialog.cpp @@ -105,7 +105,6 @@ QuitDialog::QuitDialog(QuitDialog **const pointerToMe): QuitDialog::~QuitDialog() { - sound.playGuiSound(SOUND_HIDE_WINDOW); if (mMyPointer) *mMyPointer = nullptr; // Optional widgets, so delete them by hand. @@ -161,6 +160,10 @@ void QuitDialog::action(const gcn::ActionEvent &event) } } } + else + { + sound.playGuiSound(SOUND_HIDE_WINDOW); + } scheduleDelete(); } |