Fix VPath lookup ignoring possibility of remote files (#588)
* Fix VPath lookup ignoring possibility of remote files * Use more formal URL check Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
This commit is contained in:
parent
7ce4dd6f61
commit
74d01e81fb
@ -253,6 +253,12 @@ QString AOApplication::get_real_path(const VPath &vpath) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Not found in mount paths; check if the file is remote
|
||||||
|
QString remotePath = vpath.toQString();
|
||||||
|
if (remotePath.startsWith("http:") || remotePath.startsWith("https:")) {
|
||||||
|
return remotePath;
|
||||||
|
}
|
||||||
|
|
||||||
// File or directory not found
|
// File or directory not found
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user