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:
parent
9cd3f3c4a3
commit
051f3fec58
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user