diff --git a/plugins/mousequery.cpp b/plugins/mousequery.cpp index 4e0143fb6..66fa0fee5 100644 --- a/plugins/mousequery.cpp +++ b/plugins/mousequery.cpp @@ -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);