summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2023-10-06 21:38:34 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2023-10-06 21:38:34 +0800
commit3006394a69af7ffdf8770cb28b65a690ebfdae00 (patch)
tree25bf5124de75b329c40c1c5e0b961cb2b5c4c0a8
parentfba341ce44427d9515a581c19a8c98b522cef02b (diff)
downloadredot-engine-3006394a69af7ffdf8770cb28b65a690ebfdae00.tar.gz
Fix garbled text in editor toasters
-rw-r--r--editor/gui/editor_toaster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/gui/editor_toaster.cpp b/editor/gui/editor_toaster.cpp
index 0d468bc0a3..1abb591508 100644
--- a/editor/gui/editor_toaster.cpp
+++ b/editor/gui/editor_toaster.cpp
@@ -149,7 +149,7 @@ void EditorToaster::_notification(int p_what) {
void EditorToaster::_error_handler(void *p_self, const char *p_func, const char *p_file, int p_line, const char *p_error, const char *p_errorexp, bool p_editor_notify, ErrorHandlerType p_type) {
// This may be called from a thread. Since we will deal with non-thread-safe elements,
// we have to put it in the queue for safety.
- callable_mp_static(&EditorToaster::_error_handler_impl).bind(p_file, p_line, p_error, p_errorexp, p_editor_notify, p_type).call_deferred();
+ callable_mp_static(&EditorToaster::_error_handler_impl).bind(String::utf8(p_file), p_line, String::utf8(p_error), String::utf8(p_errorexp), p_editor_notify, p_type).call_deferred();
}
void EditorToaster::_error_handler_impl(const String &p_file, int p_line, const String &p_error, const String &p_errorexp, bool p_editor_notify, int p_type) {