Avoid closing DF if launching command-prompt from prompt

develop
Pauli 2018-06-20 22:16:23 +03:00
parent 37e3a59b7c
commit 72029e7de9
1 changed files with 1 additions and 1 deletions

@ -315,7 +315,7 @@ void viewscreen_commandpromptst::feed(std::set<df::interface_key> *events)
command_result show_prompt(color_ostream &out, std::vector <std::string> & parameters)
{
if (Gui::getCurFocus() == "dfhack/commandprompt")
if (Gui::getCurFocus(true) == "dfhack/commandprompt")
{
Screen::dismiss(Gui::getCurViewscreen(true));
return CR_OK;