mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed crash when loading Trekbuddy atlases or Garmin GMAP as map dirs.
This commit is contained in:
parent
d33bcd1e55
commit
9f3917b0f2
@ -86,7 +86,10 @@ TreeNode<Map *> MapList::loadDir(const QString &path, TreeNode<Map *> *parent)
|
||||
bool isDir = false;
|
||||
Map *map = loadFile(fi.absoluteFilePath(), &isDir);
|
||||
if (isDir) {
|
||||
parent->addItem(map);
|
||||
if (parent)
|
||||
parent->addItem(map);
|
||||
else
|
||||
tree.addItem(map);
|
||||
break;
|
||||
} else
|
||||
tree.addItem(map);
|
||||
|
Loading…
Reference in New Issue
Block a user