Commit 4beab5d3 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Change import compare function

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

Change-Id: I7866f261d372020902a451df19a65080e7ae5ef4
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent f08d46aa
......@@ -92,7 +92,7 @@ QString Import::toString(bool skipAlias) 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment