From f840e93fc9331e0f6923dcc9ca1c51b796e4f5a3 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 17 Sep 2021 22:53:00 +0200 Subject: [PATCH] Fixed an issue where closing an entry in the metadata editor could lead to a crash. --- es-core/src/guis/GuiTextEditKeyboardPopup.cpp | 3 ++- es-core/src/guis/GuiTextEditPopup.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/es-core/src/guis/GuiTextEditKeyboardPopup.cpp b/es-core/src/guis/GuiTextEditKeyboardPopup.cpp index f163fc4a0..6b1a08f95 100644 --- a/es-core/src/guis/GuiTextEditKeyboardPopup.cpp +++ b/es-core/src/guis/GuiTextEditKeyboardPopup.cpp @@ -359,11 +359,12 @@ bool GuiTextEditKeyboardPopup::input(InputConfig* config, Input input) "NO", [this] { delete this; - return false; + return true; })); } else { delete this; + return true; } } diff --git a/es-core/src/guis/GuiTextEditPopup.cpp b/es-core/src/guis/GuiTextEditPopup.cpp index c84f7cd27..38e2a483a 100644 --- a/es-core/src/guis/GuiTextEditPopup.cpp +++ b/es-core/src/guis/GuiTextEditPopup.cpp @@ -188,11 +188,12 @@ bool GuiTextEditPopup::input(InputConfig* config, Input input) "NO", [this] { delete this; - return false; + return true; })); } else { delete this; + return true; } }