From 27254581a4509c9382968953a98bb9bde7f54cab Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 26 Sep 2023 11:10:23 +0200 Subject: [PATCH] Fix Probability popup stuck with ghost value --- editor/limbo_ai_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/limbo_ai_editor_plugin.cpp b/editor/limbo_ai_editor_plugin.cpp index 270f4bb..dc92550 100644 --- a/editor/limbo_ai_editor_plugin.cpp +++ b/editor/limbo_ai_editor_plugin.cpp @@ -474,7 +474,7 @@ void LimboAIEditor::_update_probability_edit() { } void LimboAIEditor::_probability_popup_closed() { - probability_edit->get_line_edit()->release_focus(); + probability_edit->grab_focus(); // Hack: Workaround for an EditorSpinSlider bug keeping LineEdit visible and "stuck" with ghost value. } void LimboAIEditor::_misc_option_selected(int p_id) {