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:
parent
3b55bc0efc
commit
47199348d8
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user