[Gui] Fix string encoding for document name
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user