Gui: Fix non-Latin groupName (#26285)

This commit is contained in:
VM4Dim
2025-12-20 03:53:16 +03:00
committed by GitHub
parent 4e2221a913
commit 6c04ea765f

View File

@@ -271,9 +271,7 @@ PropertyModel::GroupInfo& PropertyModel::getGroupInfo(App::Property* prop)
{
const char* group = prop->getGroup();
bool isEmpty = Base::Tools::isNullOrEmpty(group);
QString groupName = QString::fromLatin1(
isEmpty ? QT_TRANSLATE_NOOP("App::Property", "Base") : group
);
QString groupName = QString::fromUtf8(isEmpty ? QT_TRANSLATE_NOOP("App::Property", "Base") : group);
auto res = groupItems.insert(std::make_pair(groupName, GroupInfo()));
if (res.second) {