History

trying again on script loading changes

Seth Alves committed 10 years ago

Commit 35affe21 parent 0f288244 files · +67 −36Browse files

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

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+3−3
@@ -220,7 +220,7 @@ void ScriptEngine::loadURL(const QUrl& scriptURL, bool reload) { · 219 unmodified lines
220 return;220 return;
221 }221 }
222 222
223 QUrl url = expandScriptUrl(normalizeScriptURL(scriptURL));223 QUrl url = expandScriptUrl(scriptURL);
224 _fileNameString = url.toString();224 _fileNameString = url.toString();
225 _isReloading = reload;225 _isReloading = reload;
226 226
@@ -847,7 +847,7 @@ QUrl ScriptEngine::resolvePath(const QString& include) const { · 620 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 expandScriptUrl(normalizeScriptURL(url));850 return expandScriptUrl(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 = expandScriptUrl(normalizeScriptURL(parentURL.resolved(url)));867 url = expandScriptUrl(parentURL.resolved(url));
868 return url;868 return url;
869}869}
870 870