Skip to content

Commit

Permalink
lookup qml files in failed dir of import
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelvasev authored and ChALkeR committed Mar 4, 2016
1 parent 78e3d7a commit fdf6f97
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/qtcore/qml/QMLEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,17 @@ QMLEngine = function (element, options) {
// save blank info, meaning that we failed to load import
// this prevents repeated lookups
this.qmldirsContents[ name ] = {};
continue;

// NEW
// add that dir to import path list
// that means, lookup qml files in that failed dir by trying to load them directly
// this is not the same behavior as in Qt for "url" schemes,
// but it is same as for ordirnal disk files.
// So, we do it for experimental purposes.
if (nameIsDir)
this.addImportPath( name + "/" );

continue;
}

// copy founded externals to global var
Expand Down

0 comments on commit fdf6f97

Please sign in to comment.