Fix blank error messages
This commit is contained in:
committed by
Raphael Coeffic
parent
f57a1fd6c3
commit
278a27b65f
@@ -211,12 +211,12 @@ bool readSettingsSDCard(const QString & filename, ProgressWidget * progress)
|
|||||||
RadioData radioData;
|
RadioData radioData;
|
||||||
Storage inputStorage(radioPath);
|
Storage inputStorage(radioPath);
|
||||||
if (!inputStorage.load(radioData)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
Storage outputStorage(filename);
|
Storage outputStorage(filename);
|
||||||
if (!outputStorage.write(radioData)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user