Gui: Fix non-Latin groupName (#26285)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user