diff --git a/client/lobby/RandomMapTab.cpp b/client/lobby/RandomMapTab.cpp index 5387c5467..339e838df 100644 --- a/client/lobby/RandomMapTab.cpp +++ b/client/lobby/RandomMapTab.cpp @@ -394,6 +394,10 @@ void TemplatesDropBox::ListItem::clickLeft(tribool down, bool previousState) { dropBox.setTemplate(item); } + else + { + dropBox.clickLeft(true, true); + } } @@ -449,8 +453,14 @@ void TemplatesDropBox::clickLeft(tribool down, bool previousState) { if(down && !hovered) { - assert(GH.topInt().get() == this); - GH.popInt(GH.topInt()); + auto w = widget("slider"); + + // pop the interface only if the mouse is not clicking on the slider + if (!w || !w->mouseState(MouseButton::LEFT)) + { + assert(GH.topInt().get() == this); + GH.popInt(GH.topInt()); + } } }