Rough post-merge GUI fix

This commit is contained in:
Sergii Pylypenko
2016-03-28 22:14:45 +03:00
parent 04cecd2f9a
commit 0ad6eba1b6
2 changed files with 66 additions and 2 deletions

View File

@@ -280,6 +280,16 @@ struct TerraformToolbarWindow : Window {
this->RaiseButtons();
}
virtual void SelectLastTool()
{
// User misplaced something - activate last selected tool again
if (this->last_user_action == WIDGET_LIST_END)
return;
Point dummy = {0, 0};
this->RaiseWidget(this->last_user_action);
this->OnClick(dummy, this->last_user_action, 0);
}
static HotkeyList hotkeys;
};