Skip to content
Permalink
Browse files

guiVolumeChange: Fix child not being removed

  • Loading branch information...
ClobberXD authored and sfan5 committed Aug 8, 2019
1 parent 3792392 commit cc610c74a742511e04dce91b24d09c860ca7fa1b
Showing with 3 additions and 1 deletion.
  1. +3 −1 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;
}

0 comments on commit cc610c7

Please sign in to comment.
You can’t perform that action at this time.