mirror of
https://github.com/overte-org/overte.git
synced 2025-07-04 12:49:38 +02:00
CR feedback
This commit is contained in:
parent
d62945c6bf
commit
f710afbfd1
1 changed files with 2 additions and 4 deletions
|
@ -28,10 +28,8 @@ ResourceRequest* ResourceManager::createResourceRequest(QObject* parent, const Q
|
|||
} else {
|
||||
// check the degenerative file case: on windows we can often have urls of the form c:/filename
|
||||
// this checks for and works around that case.
|
||||
QString urlWithFileSchemeName = URL_SCHEME_FILE + ":///" + url.toString();
|
||||
QUrl urlWithFileScheme = urlWithFileSchemeName;
|
||||
QString fileName = urlWithFileScheme.toLocalFile();
|
||||
if (!fileName.isEmpty()) {
|
||||
QUrl urlWithFileScheme { QString(URL_SCHEME_FILE + ":///" + url.toString()) };
|
||||
if (!urlWithFileScheme.toLocalFile().isEmpty()) {
|
||||
return new FileResourceRequest(parent, urlWithFileScheme);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue