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:
parent
2002b828dd
commit
7b03c4d852
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user