mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
handle incorrect casing in persist file extension
This commit is contained in:
parent
90b78feb1e
commit
99d1fa08fd
1 changed files with 5 additions and 2 deletions
|
@ -1154,8 +1154,11 @@ void OctreeServer::domainSettingsRequestComplete() {
|
|||
}
|
||||
|
||||
// force the persist file to end with .json.gz
|
||||
if (!absoluteFilePath.endsWith(".json.gz", Qt::CaseInsensitive)) {
|
||||
absoluteFilePath += ".json.gz";
|
||||
if (!absoluteFilePath.endsWith(_persistAsFileType, Qt::CaseInsensitive)) {
|
||||
absoluteFilePath += _persistAsFileType;
|
||||
} else {
|
||||
// make sure the casing of .json.gz is correct
|
||||
absoluteFilePath.replace(_persistAsFileType, _persistAsFileType, Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
if (!QFile::exists(absoluteFilePath)) {
|
||||
|
|
Loading…
Reference in a new issue