QmlDesigner.MetaInfo: Fix for qualification

If there is no package the unqualified name is the name not
an empty string.

Change-Id: I04a51fc79ea9e312e2035ce80eb0f846673a3a44
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Thomas Hartmann
2013-04-18 10:07:33 +02:00
parent 0398eb6acd
commit 67825ab2dc

View File

@@ -778,7 +778,7 @@ static QString getUnqualifiedName(const QString &name)
{ {
const QStringList nameComponents = name.split('.'); const QStringList nameComponents = name.split('.');
if (nameComponents.size() < 2) if (nameComponents.size() < 2)
return QString(); return name;
return nameComponents.last(); return nameComponents.last();
} }