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
220220 return;
221221 }
222222
223− QUrl url = expandScriptUrl(normalizeScriptURL(scriptURL));
223+ QUrl url = expandScriptUrl(scriptURL);
224224 _fileNameString = url.toString();
225225 _isReloading = reload;
226226
@@ -847,7 +847,7 @@ QUrl ScriptEngine::resolvePath(const QString& include) const { · 620 unmodified lines
847847 QUrl url(include);
848848 // first lets check to see if it's already a full URL
849849 if (!url.scheme().isEmpty()) {
850− return expandScriptUrl(normalizeScriptURL(url));
850+ return expandScriptUrl(url);
851851 }
852852
853853 // 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
864864 }
865865
866866 // 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));
868868 return url;
869869 }
870870