mousequery: leave menus safely, without looping

Fixes #1285
develop
lethosor 2018-05-22 16:37:44 -04:00
parent 5f81cac3b7
commit e206a6d88b
1 changed files with 1 additions and 4 deletions

@ -392,10 +392,7 @@ struct mousequery_hook : public df::viewscreen_dwarfmodest
if (!designationMode)
{
while (ui->main.mode != Default)
{
sendKey(df::interface_key::LEAVESCREEN);
}
Gui::resetDwarfmodeView();
if (key == interface_key::NONE)
key = get_default_query_mode(mpos);