[Gui] Fix string encoding for document name

This commit is contained in:
Syres916
2025-11-20 20:02:21 +00:00
committed by GitHub
parent 6d8c5bd2f9
commit 83c01fae68

View File

@@ -1414,11 +1414,11 @@ static bool checkCanonicalPath(const std::map<App::Document*, bool>& docs)
auto docName = [](App::Document* doc) -> QString {
if (doc->Label.getStrValue() == doc->getName()) {
return QString::fromLatin1(doc->getName());
return QString::fromUtf8(doc->getName());
}
return QStringLiteral("%1 (%2)").arg(
QString::fromUtf8(doc->Label.getValue()),
QString::fromLatin1(doc->getName())
QString::fromUtf8(doc->getName())
);
};
int count = 0;