1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Fixed error handling

This commit is contained in:
Martin Tůma 2021-10-13 20:44:34 +02:00
parent 9cd3f3c4a3
commit 051f3fec58

View File

@ -860,6 +860,8 @@ bool GUI::loadFile(const QString &fileName, bool silent)
updateWindowTitle();
updateGraphTabs();
updateDEMDownloadAction();
if (_files.isEmpty())
_fileActionGroup->setEnabled(false);
QString error = tr("Error loading data file:") + "\n\n"
+ fileName + "\n\n" + data.errorString();