diff options
author | ANAND <ClobberXD@gmail.com> | 2019-08-08 21:11:23 +0530 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-08 18:03:35 +0200 |
commit | cc610c74a742511e04dce91b24d09c860ca7fa1b (patch) | |
tree | 7c817067f73763a6d9d8607972a0297cc0615ee2 /src/gui | |
parent | 37923920a07f06d201662d8f1f4e5821efcc7b09 (diff) | |
download | minetest-cc610c74a742511e04dce91b24d09c860ca7fa1b.tar.gz minetest-cc610c74a742511e04dce91b24d09c860ca7fa1b.tar.bz2 minetest-cc610c74a742511e04dce91b24d09c860ca7fa1b.zip |
guiVolumeChange: Fix child not being removed
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/guiVolumeChange.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/guiVolumeChange.cpp b/src/gui/guiVolumeChange.cpp index e0cb6fa72..45d2ee139 100644 --- a/src/gui/guiVolumeChange.cpp +++ b/src/gui/guiVolumeChange.cpp @@ -58,6 +58,9 @@ void GUIVolumeChange::removeChildren() if (gui::IGUIElement *e = getElementFromId(ID_soundSlider)) e->remove(); + + if (gui::IGUIElement *e = getElementFromId(ID_soundMuteButton)) + e->remove(); } void GUIVolumeChange::regenerateGui(v2u32 screensize) @@ -193,4 +196,3 @@ bool GUIVolumeChange::OnEvent(const SEvent& event) return Parent ? Parent->OnEvent(event) : false; } - |