From 051f3fec58da7312686a9446210df138b47235e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 13 Oct 2021 20:44:34 +0200 Subject: [PATCH] Fixed error handling --- src/GUI/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 6adac76b..ce18e46a 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -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();