mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 20:10:20 +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) {
|
||||
auto lower = rawScriptUrl.toLower();
|
||||
#ifndef Q_OS_LINUX
|
||||
if (!rawScriptUrl.startsWith("http:") && !rawScriptUrl.startsWith("https:") && !rawScriptUrl.startsWith("atp:")) {
|
||||
if (rawScriptUrl.startsWith("file:")) {
|
||||
return rawScriptUrl.toLower();
|
||||
|
@ -50,6 +51,7 @@ QString normalizeScriptUrl(const QString& rawScriptUrl) {
|
|||
// Force lowercase on file scripts because of drive letter weirdness.
|
||||
return QUrl::fromLocalFile(rawScriptUrl).toString().toLower();
|
||||
}
|
||||
#endif
|
||||
return QUrl(rawScriptUrl).toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue