From ac67034c3fe02a9f1dd85b7afd573fc75f6b1975 Mon Sep 17 00:00:00 2001 From: Andrei Popa Date: Mon, 27 Jan 2025 15:55:38 +0200 Subject: [PATCH] style: fix property replacing on MacOS Signed-off-by: Andrei Popa --- gui/src/style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/style.cpp b/gui/src/style.cpp index a510ae587a..487c4907e5 100644 --- a/gui/src/style.cpp +++ b/gui/src/style.cpp @@ -267,7 +267,7 @@ const char *Style::replaceProperty(const char *prop) if(prop == key) { QJsonValue value = m_theme_json->object().value(key); prop = value.toString().toLocal8Bit().data(); - return prop; + return strdup(prop); } }