Skip to content

Commit

Permalink
guiVolumeChange: Fix child not being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ClobberXD authored and sfan5 committed Aug 8, 2019
1 parent 3792392 commit cc610c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/guiVolumeChange.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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.