diff options
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(); } |