Fixed an issue where closing an entry in the metadata editor could lead to a crash.

This commit is contained in:
Leon Styhre 2021-09-17 22:53:00 +02:00
parent c4e6d3cac1
commit f840e93fc9
2 changed files with 4 additions and 2 deletions

View file

@ -359,11 +359,12 @@ bool GuiTextEditKeyboardPopup::input(InputConfig* config, Input input)
"NO",
[this] {
delete this;
return false;
return true;
}));
}
else {
delete this;
return true;
}
}

View file

@ -188,11 +188,12 @@ bool GuiTextEditPopup::input(InputConfig* config, Input input)
"NO",
[this] {
delete this;
return false;
return true;
}));
}
else {
delete this;
return true;
}
}