diff --git a/src/map/tileloader.cpp b/src/map/tileloader.cpp index 59f510b1..a768b2d9 100644 --- a/src/map/tileloader.cpp +++ b/src/map/tileloader.cpp @@ -64,7 +64,7 @@ void TileLoader::loadTilesSync(QList &list) if (t.pixmap().isNull()) { QString file = tileFile(t); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) loadTileFile(t, file); } } diff --git a/src/map/wms.cpp b/src/map/wms.cpp index 76e83459..d324cf72 100644 --- a/src/map/wms.cpp +++ b/src/map/wms.cpp @@ -265,7 +265,7 @@ bool WMS::getCapabilities(const QString &url, const QString &file, if (_downloader->get(dl, authorization)) wait.exec(); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) return true; else { _errorString = "Error downloading capabilities XML file"; @@ -278,7 +278,7 @@ WMS::WMS(const QString &file, const WMS::Setup &setup) : _valid(false) QString capaUrl = QString("%1?service=WMS&request=GetCapabilities") .arg(setup.url()); - if (!QFileInfo::exists(file)) + if (!QFileInfo(file).exists()) if (!getCapabilities(capaUrl, file, setup.authorization())) return; if (!parseCapabilities(file, setup)) diff --git a/src/map/wmts.cpp b/src/map/wmts.cpp index 41aa27c5..b237255a 100644 --- a/src/map/wmts.cpp +++ b/src/map/wmts.cpp @@ -291,7 +291,7 @@ bool WMTS::getCapabilities(const QString &url, const QString &file, if (_downloader->get(dl, authorization)) wait.exec(); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) return true; else { _errorString = "Error downloading capabilities XML file"; @@ -305,7 +305,7 @@ WMTS::WMTS(const QString &file, const WMTS::Setup &setup) : _valid(false) QString("%1?service=WMTS&Version=1.0.0&request=GetCapabilities") .arg(setup.url()); - if (!QFileInfo::exists(file)) + if (!QFileInfo(file).exists()) if (!getCapabilities(capaUrl, file, setup.authorization())) return; if (!parseCapabilities(file, setup))