From 278a27b65f05edea1150b08bddbdab954b6b2879 Mon Sep 17 00:00:00 2001 From: elecpower Date: Mon, 29 Nov 2021 22:16:54 +1100 Subject: [PATCH] Fix blank error messages --- companion/src/radiointerface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/radiointerface.cpp b/companion/src/radiointerface.cpp index eb90a5a2c..9b5cca0dd 100644 --- a/companion/src/radiointerface.cpp +++ b/companion/src/radiointerface.cpp @@ -211,12 +211,12 @@ bool readSettingsSDCard(const QString & filename, ProgressWidget * progress) RadioData radioData; Storage inputStorage(radioPath); if (!inputStorage.load(radioData)) { - QMessageBox::critical(progress, CPN_STR_TTL_ERROR, inputStorage.error()); + QMessageBox::critical(progress, CPN_STR_TTL_ERROR, QCoreApplication::translate("RadioInterface", "Failed to read Models and Settings from") % radioPath); return false; } Storage outputStorage(filename); if (!outputStorage.write(radioData)) { - QMessageBox::critical(progress, CPN_STR_TTL_ERROR, outputStorage.error()); + QMessageBox::critical(progress, CPN_STR_TTL_ERROR, QCoreApplication::translate("RadioInterface", "Failed to write Models and Setting file") % filename); return false; }