1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed broken online map lists loading

This commit is contained in:
Martin Tůma 2018-01-14 23:46:39 +01:00
parent c535632eb6
commit 06205470fe

View File

@ -97,10 +97,17 @@ bool MapList::loadAtlas(const QString &path)
bool MapList::loadFile(const QString &path, bool *atlas)
{
QFileInfo fi(path);
QString suffix = fi.suffix().toLower();
if (Atlas::isAtlas(path)) {
if (atlas)
*atlas = true;
return loadAtlas(path);
} else if (suffix == "txt") {
if (atlas)
*atlas = false;
return loadList(path);
} else {
if (atlas)
*atlas = false;