forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user