1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 11:39:16 +02:00

Switched to XML defined online map sources

This commit is contained in:
2018-01-28 22:56:08 +01:00
parent 8a7edcfd8d
commit aa07b20aa4
15 changed files with 323 additions and 113 deletions

View File

@ -108,13 +108,8 @@ void GUI::loadMaps()
else if (QFile::exists(GLOBAL_MAP_DIR))
offline = GLOBAL_MAP_DIR;
if (!offline.isNull()) {
if (!_ml->loadDir(offline)) {
qWarning("Error reading map dir: %s",
qPrintable(_ml->errorString()));
_ml->clear();
}
}
if (!offline.isNull() && !_ml->loadDir(offline))
qWarning(qPrintable(_ml->errorString()));
_map = new EmptyMap(this);
}