1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34: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(); updateWindowTitle();
updateGraphTabs(); updateGraphTabs();
updateDEMDownloadAction(); updateDEMDownloadAction();
if (_files.isEmpty())
_fileActionGroup->setEnabled(false);
QString error = tr("Error loading data file:") + "\n\n" QString error = tr("Error loading data file:") + "\n\n"
+ fileName + "\n\n" + data.errorString(); + fileName + "\n\n" + data.errorString();