1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed error handling

This commit is contained in:
Martin Tůma 2020-02-13 22:48:47 +01:00
parent 2002b828dd
commit 7b03c4d852

View File

@ -17,13 +17,9 @@ bool MapList::loadMap(Map *map, const QString &path)
if (map && map->isValid()) {
_maps.append(map);
return true;
} else if (map) {
_errorPath = path;
_errorString = map->errorString();
return false;
} else {
_errorString = path;
_errorString = "Unknown file format";
_errorPath = path;
_errorString = (map) ? map->errorString() : "Unknown file format";
return false;
}
}