Commit 72d41501 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.Model: fix for directory imports

Direcotry imports do not have a version that needs to be checked.

Change-Id: I0ba2826927eb7ddeaaed402c75be03aedfaa2f4a
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 5d7690cf
......@@ -1709,7 +1709,7 @@ bool Model::hasImport(const Import &import, bool ignoreAlias, bool allowHigherVe
foreach (const Import &existingImport, imports()) {
if (existingImport.isFileImport() && import.isFileImport())
if (existingImport.file() == import.file() && compareVersions(existingImport.version(), import.version(), allowHigherVersion))
if (existingImport.file() == import.file())
return true;
if (existingImport.isLibraryImport() && import.isLibraryImport())
if (existingImport.url() == import.url() && compareVersions(existingImport.version(), import.version(), allowHigherVersion))
......
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