forked from qt-creator/qt-creator
Squish: Fix object map handling
Always assume UTF8 content. Fixes unicode handling
of object names.
Kind of amend b55c10f189
.
Change-Id: I5259ebed6e7eb142408ee8645fed4b0ab1460d19
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -103,7 +103,7 @@ bool ObjectsMapDocument::buildObjectsMapTree(const QByteArray &contents)
|
||||
continue;
|
||||
|
||||
const int tabPosition = line.indexOf(kPropertySeparator);
|
||||
const QString objectName = QLatin1String(line.left(tabPosition).trimmed());
|
||||
const QString objectName = QString::fromUtf8(line.left(tabPosition).trimmed());
|
||||
if (!objectName.startsWith(ObjectsMapTreeItem::COLON)) {
|
||||
qDeleteAll(itemForName);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user