mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 13:07:04 +02:00
filenames on Linux are case-sensitive
This commit is contained in:
parent
6eda7aac6a
commit
f2c9bbc32d
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@ ScriptEngines::ScriptEngines()
|
||||||
|
|
||||||
QString normalizeScriptUrl(const QString& rawScriptUrl) {
|
QString normalizeScriptUrl(const QString& rawScriptUrl) {
|
||||||
auto lower = rawScriptUrl.toLower();
|
auto lower = rawScriptUrl.toLower();
|
||||||
|
#ifndef Q_OS_LINUX
|
||||||
if (!rawScriptUrl.startsWith("http:") && !rawScriptUrl.startsWith("https:") && !rawScriptUrl.startsWith("atp:")) {
|
if (!rawScriptUrl.startsWith("http:") && !rawScriptUrl.startsWith("https:") && !rawScriptUrl.startsWith("atp:")) {
|
||||||
if (rawScriptUrl.startsWith("file:")) {
|
if (rawScriptUrl.startsWith("file:")) {
|
||||||
return rawScriptUrl.toLower();
|
return rawScriptUrl.toLower();
|
||||||
|
@ -50,6 +51,7 @@ QString normalizeScriptUrl(const QString& rawScriptUrl) {
|
||||||
// Force lowercase on file scripts because of drive letter weirdness.
|
// Force lowercase on file scripts because of drive letter weirdness.
|
||||||
return QUrl::fromLocalFile(rawScriptUrl).toString().toLower();
|
return QUrl::fromLocalFile(rawScriptUrl).toString().toLower();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return QUrl(rawScriptUrl).toString();
|
return QUrl(rawScriptUrl).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue