mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 11:43:16 +02:00
assume local file if scheme is not remote
This commit is contained in:
parent
a072f94085
commit
0bb3f1c9dc
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ void ModelBakeWidget::bakeButtonClicked() {
|
|||
QUrl modelToBakeURL(fileURLString);
|
||||
|
||||
// if the URL doesn't have a scheme, assume it is a local file
|
||||
if (modelToBakeURL.scheme().isEmpty()) {
|
||||
if (modelToBakeURL.scheme() != "http" && modelToBakeURL.scheme() != "https" && modelToBakeURL.scheme() != "ftp") {
|
||||
modelToBakeURL.setScheme("file");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue