Hide edit boxes before closing the property browser.

When the text window/property browser is closed while and edit box
is active its window remained open. This is incorrect and probably
causes a hang on Linux described in #1168. So hide the edit control
when closing.
pull/1183/head
ruevs 2022-01-06 12:37:12 +02:00 committed by phkahler
parent 3136493a6a
commit 9ba7ab5544
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ void TextWindow::Init() {
using namespace std::placeholders;
window->onClose = []() {
SS.TW.HideEditControl();
SS.GW.showTextWindow = false;
SS.GW.EnsureValidActives();
};