1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Improved error reporting

This commit is contained in:
Martin Tůma 2017-04-17 19:15:20 +02:00
parent 3b55bc0efc
commit 47199348d8

View File

@ -123,6 +123,7 @@ void GUI::createBrowser()
void GUI::loadDatums() void GUI::loadDatums()
{ {
QString ef, df; QString ef, df;
bool ok = false;
if (QFile::exists(USER_ELLIPSOID_FILE)) if (QFile::exists(USER_ELLIPSOID_FILE))
ef = USER_ELLIPSOID_FILE; ef = USER_ELLIPSOID_FILE;
@ -154,9 +155,13 @@ void GUI::loadDatums()
else else
qWarning("%s: %s", qPrintable(ef), qPrintable( qWarning("%s: %s", qPrintable(ef), qPrintable(
Datum::errorString())); Datum::errorString()));
} else
ok = true;
} }
} }
}
if (!ok)
qWarning("Maps based on a datum different from WGS84 won't work.");
} }
void GUI::loadMaps() void GUI::loadMaps()