From 37de679533ab6b25400f457b4e2fa369461b98f9 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Sat, 25 Apr 2026 00:11:23 +0800 Subject: [PATCH] Fix crash on launch caused by ref of tmp object (#13341) --- src/slic3r/GUI/GUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 78d9c9839b..481f335d39 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -80,7 +80,8 @@ void break_to_debugger() const std::string& shortkey_shift_prefix() { - return _u8L("Shift+"); + static const std::string str = _u8L("Shift+"); + return str; } const std::string& shortkey_ctrl_prefix()