QmlDesigner: Change import compare function

Before Import("QtQuick") == Import("QtQuick", "2.1") was false but now it
is true.

Change-Id: I7866f261d372020902a451df19a65080e7ae5ef4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-11-11 14:37:03 +01:00
parent f08d46aa7d
commit 4beab5d343

View File

@@ -92,7 +92,7 @@ QString Import::toString(bool skipAlias) const
bool Import::operator==(const Import &other) const bool Import::operator==(const Import &other) const
{ {
return url() == other.url() && file() == other.file() && version() == other.version() && alias() == other.alias(); return url() == other.url() && file() == other.file() && (version() == other.version() || version().isEmpty() || other.version().isEmpty());
} }
bool Import::isSameModule(const Import &other) const bool Import::isSameModule(const Import &other) const