From 9ba7ab5544a40b1097356249ed4f07e409c319fe Mon Sep 17 00:00:00 2001 From: ruevs Date: Thu, 6 Jan 2022 12:37:12 +0200 Subject: [PATCH] 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. --- src/textwin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textwin.cpp b/src/textwin.cpp index d0755b0..b68c068 100644 --- a/src/textwin.cpp +++ b/src/textwin.cpp @@ -235,6 +235,7 @@ void TextWindow::Init() { using namespace std::placeholders; window->onClose = []() { + SS.TW.HideEditControl(); SS.GW.showTextWindow = false; SS.GW.EnsureValidActives(); };