1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-04-21 04:39:10 +02:00

Compare commits

..

No commits in common. "048198dfe10a20a3f73867edb510f4e1869bba7b" and "152f17f15a39d3f72c917d3d08bc7898aecd3b0d" have entirely different histories.

3 changed files with 9 additions and 10 deletions

View File

@ -7,7 +7,6 @@
#include <QLibraryInfo>
#include <QSurfaceFormat>
#include <QImageReader>
#include <QFileInfo>
#ifdef Q_OS_ANDROID
#include <QCoreApplication>
#include <QJniObject>
@ -155,13 +154,10 @@ void App::loadDatums()
QString ellipsoidsFile(ProgramPaths::ellipsoidsFile());
QString gcsFile(ProgramPaths::gcsFile());
if (!QFileInfo::exists(ellipsoidsFile)) {
if (ellipsoidsFile.isNull())
qWarning("No ellipsoids file found.");
ellipsoidsFile = QString();
} if (!QFileInfo::exists(gcsFile)) {
if (gcsFile.isNull())
qWarning("No GCS file found.");
gcsFile = QString();
}
if (!ellipsoidsFile.isNull() && !gcsFile.isNull()) {
Ellipsoid::loadList(ellipsoidsFile);
@ -174,9 +170,8 @@ void App::loadPCSs()
{
QString pcsFile(ProgramPaths::pcsFile());
if (!QFileInfo::exists(pcsFile)) {
if (pcsFile.isNull())
qWarning("No PCS file found.");
qWarning("Maps based on a projection different from EPSG:3857 won't work.");
} else
else
PCS::loadList(pcsFile);
}

View File

@ -137,8 +137,11 @@ TreeNode<MapAction*> GUI::createMapActionsNode(const TreeNode<Map*> &node)
MapAction *a = new MapAction(map, _mapsActionGroup);
connect(a, &MapAction::loaded, this, &GUI::mapInitialized);
tree.addItem(a);
} else
} else {
qWarning("%s: %s", qPrintable(map->path()),
qPrintable(map->errorString()));
delete map;
}
}
return tree;

View File

@ -80,6 +80,7 @@ Map *MapList::loadFile(const QString &path, const Projection &proj, bool *isDir)
errors.append(it.key() + ": " + map->errorString());
++it;
}
} else {
for (it = _parsers.begin(); it != _parsers.end(); it++) {
map = it.value()(path, proj, isDir);