Encode config uri in order to take account of special characters like spaces.
This commit is contained in:
parent
11a8106327
commit
c5c6a328b1
1 changed files with 2 additions and 1 deletions
|
|
@ -220,7 +220,8 @@ bool CoreModel::setFetchConfig(QString filePath) {
|
||||||
if (!filePath.isEmpty()) {
|
if (!filePath.isEmpty()) {
|
||||||
if (mCore) {
|
if (mCore) {
|
||||||
filePath.replace('\\', '/');
|
filePath.replace('\\', '/');
|
||||||
fetched = mCore->setProvisioningUri(Utils::appStringToCoreString(filePath)) == 0;
|
QUrl url(filePath);
|
||||||
|
fetched = mCore->setProvisioningUri(Utils::appStringToCoreString(url.toEncoded())) == 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!fetched) {
|
if (!fetched) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue