Skip to content

Commit cb9381a

Browse files
committed
gui: style: fix macos property replacing
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
1 parent 2959074 commit cb9381a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gui/src/style.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ const char *Style::replaceProperty(const char *prop)
279279
for(const QString &key : m_theme_json->object().keys()) {
280280
if(prop == key) {
281281
QJsonValue value = m_theme_json->object().value(key);
282-
prop = value.toString().toLocal8Bit().data();
283-
return strdup(prop);
282+
prop = strdup(value.toString().toLocal8Bit().data());
283+
return prop;
284284
}
285285
}
286286

0 commit comments

Comments
 (0)