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:
parent
c535632eb6
commit
06205470fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user