diff --git a/src/plugins/qmldesigner/designercore/model/import.cpp b/src/plugins/qmldesigner/designercore/model/import.cpp index b2a46ea264c..39b0f63b55c 100644 --- a/src/plugins/qmldesigner/designercore/model/import.cpp +++ b/src/plugins/qmldesigner/designercore/model/import.cpp @@ -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