mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-17 16:20:48 +01:00
Removed duplicit map error debug output
This commit is contained in:
parent
a50fa28c08
commit
048198dfe1
@ -137,11 +137,8 @@ TreeNode<MapAction*> GUI::createMapActionsNode(const TreeNode<Map*> &node)
|
|||||||
MapAction *a = new MapAction(map, _mapsActionGroup);
|
MapAction *a = new MapAction(map, _mapsActionGroup);
|
||||||
connect(a, &MapAction::loaded, this, &GUI::mapInitialized);
|
connect(a, &MapAction::loaded, this, &GUI::mapInitialized);
|
||||||
tree.addItem(a);
|
tree.addItem(a);
|
||||||
} else {
|
} else
|
||||||
qWarning("%s: %s", qPrintable(map->path()),
|
|
||||||
qPrintable(map->errorString()));
|
|
||||||
delete map;
|
delete map;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return tree;
|
return tree;
|
||||||
|
@ -80,7 +80,6 @@ Map *MapList::loadFile(const QString &path, const Projection &proj, bool *isDir)
|
|||||||
errors.append(it.key() + ": " + map->errorString());
|
errors.append(it.key() + ": " + map->errorString());
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
for (it = _parsers.begin(); it != _parsers.end(); it++) {
|
for (it = _parsers.begin(); it != _parsers.end(); it++) {
|
||||||
map = it.value()(path, proj, isDir);
|
map = it.value()(path, proj, isDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user