1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +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()
{
QString ef, df;
bool ok = false;
if (QFile::exists(USER_ELLIPSOID_FILE))
ef = USER_ELLIPSOID_FILE;
@ -154,9 +155,13 @@ void GUI::loadDatums()
else
qWarning("%s: %s", qPrintable(ef), qPrintable(
Datum::errorString()));
} else
ok = true;
}
}
}
if (!ok)
qWarning("Maps based on a datum different from WGS84 won't work.");
}
void GUI::loadMaps()