From 47199348d844149fd98a6ce9de2a3b30546c2600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 17 Apr 2017 19:15:20 +0200 Subject: [PATCH] Improved error reporting --- src/gui.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui.cpp b/src/gui.cpp index 353e16fd..4f3eb3a6 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -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()