1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed error handling

This commit is contained in:
Martin Tůma 2016-03-29 20:58:33 +02:00
parent 9dce08bce4
commit eec797125b

View File

@ -489,7 +489,8 @@ bool GUI::openFile(const QString &fileName)
_fileActionGroup->setEnabled(true);
_navigationActionGroup->setEnabled(true);
} else {
_fileActionGroup->setEnabled(false);
if (_files.isEmpty())
_fileActionGroup->setEnabled(false);
ret = false;
}