From cc610c74a742511e04dce91b24d09c860ca7fa1b Mon Sep 17 00:00:00 2001 From: ANAND Date: Thu, 8 Aug 2019 21:11:23 +0530 Subject: [PATCH] guiVolumeChange: Fix child not being removed --- src/gui/guiVolumeChange.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -