summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/localplayer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 1acc6a938..e8c218292 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -208,8 +208,12 @@ LocalPlayer::~LocalPlayer()
config.removeListeners(this);
serverConfig.removeListener("enableBuggyServers", this);
- delete mAwayDialog;
- mAwayDialog = nullptr;
+ if (mAwayDialog)
+ {
+ sound.volumeRestore();
+ delete mAwayDialog;
+ mAwayDialog = nullptr;
+ }
delete mAwayListener;
mAwayListener = nullptr;
}