summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-07 22:28:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-07 22:28:32 +0300
commitb384454131c7bd50ba171b1fdbad64cfc83d1ffb (patch)
tree65e2294544088a4e9ed440cb7ba1c01b347dc700 /src/localplayer.cpp
parentb5aaeb9fe58a43717de109c7398f44b19193bc99 (diff)
downloadplus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.tar.gz
plus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.tar.bz2
plus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.tar.xz
plus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.zip
Restore volume in disconnect in afk mode.
Diffstat (limited to 'src/localplayer.cpp')
-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;
}