History

fix batch-loaded local scripts

Seth Alves committed 10 years ago

Commit 63595e11 parent aea06911 file · +2 −2Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−2
@@ -847,7 +847,7 @@ QUrl ScriptEngine::resolvePath(const QString& include) const { · 846 unmodified lines
847 QUrl url(include);847 QUrl url(include);
848 // first lets check to see if it's already a full URL848 // first lets check to see if it's already a full URL
849 if (!url.scheme().isEmpty()) {849 if (!url.scheme().isEmpty()) {
850 return url;850 return expandScriptUrl(normalizeScriptURL(url));
851 }851 }
852 852
853 // we apparently weren't a fully qualified url, so, let's assume we're relative853 // we apparently weren't a fully qualified url, so, let's assume we're relative
@@ -864,7 +864,7 @@ QUrl ScriptEngine::resolvePath(const QString& include) const { · 10 unmodified lines
864 }864 }
865 865
866 // at this point we should have a legitimate fully qualified URL for our parent866 // at this point we should have a legitimate fully qualified URL for our parent
867 url = parentURL.resolved(url);867 url = expandScriptUrl(normalizeScriptURL(parentURL.resolved(url)));
868 return url;868 return url;
869}869}
870 870