Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 1 file). Show all
Unified · Split
| @@ -43,6 +43,7 @@ ScriptEngines::ScriptEngines() · 42 unmodified lines | |||
| 43 | 43 | ||
| 44 | QString normalizeScriptUrl(const QString& rawScriptUrl) { | 44 | QString normalizeScriptUrl(const QString& rawScriptUrl) { |
| 45 | auto lower = rawScriptUrl.toLower(); | 45 | auto lower = rawScriptUrl.toLower(); |
| 46 | #ifndef Q_OS_LINUX | ||
| 46 | if (!rawScriptUrl.startsWith("http:") && !rawScriptUrl.startsWith("https:") && !rawScriptUrl.startsWith("atp:")) { | 47 | if (!rawScriptUrl.startsWith("http:") && !rawScriptUrl.startsWith("https:") && !rawScriptUrl.startsWith("atp:")) { |
| 47 | if (rawScriptUrl.startsWith("file:")) { | 48 | if (rawScriptUrl.startsWith("file:")) { |
| 48 | return rawScriptUrl.toLower(); | 49 | return rawScriptUrl.toLower(); |
| @@ -50,6 +51,7 @@ QString normalizeScriptUrl(const QString& rawScriptUrl) { · 1 unmodified line | |||
| 50 | // Force lowercase on file scripts because of drive letter weirdness. | 51 | // Force lowercase on file scripts because of drive letter weirdness. |
| 51 | return QUrl::fromLocalFile(rawScriptUrl).toString().toLower(); | 52 | return QUrl::fromLocalFile(rawScriptUrl).toString().toLower(); |
| 52 | } | 53 | } |
| 54 | #endif | ||
| 53 | return QUrl(rawScriptUrl).toString(); | 55 | return QUrl(rawScriptUrl).toString(); |
| 54 | } | 56 | } |
| 55 | 57 | ||