fix(cpn): compilation breakage due to #7438 (#7544)

This commit is contained in:
philmoz
2026-07-11 20:17:04 +10:00
committed by GitHub
parent a0fcc8e069
commit 2eb090f66e
7 changed files with 17 additions and 16 deletions
-5
View File
@@ -563,11 +563,6 @@ void AppData::loadNamedJS()
}
}
static QString fmtHex(quint32 num)
{
return QString::number(num, 16).toUpper();
}
void AppData::init()
{
qInfo().noquote() << "Settings init with" << m_settings.organizationName() << m_settings.applicationName()
+6 -3
View File
@@ -178,9 +178,12 @@ FirmwareInterface::FirmwareInterface(const QString &filename, QDialog *parent) :
if (filename.isEmpty()) return;
QFile file(filename);
file.open(QIODevice::ReadOnly);
initFlash(file.readAll());
file.close();
if (file.open(QIODevice::ReadOnly)) {
initFlash(file.readAll());
file.close();
} else {
// TODO: error handling
}
}
FirmwareInterface::FirmwareInterface(const QByteArray &flashData, QDialog *parent) :
+2 -2
View File
@@ -324,7 +324,7 @@ bool LabelsStorageFormat::write(RadioData & radioData)
QByteArray modelData;
if (!writeModelToYaml(model, modelData)) {
fatalMsg(tr("Error converting model to yaml: %1").arg(model.name));
fatalMsg(tr("Error converting model to yaml: %1").arg(model.name.toQString()));
return false;
}
@@ -344,7 +344,7 @@ bool LabelsStorageFormat::write(RadioData & radioData)
if (!writeChecklist(model))
return false;
statusMsg(tr("Model written: %1").arg(model.name));
statusMsg(tr("Model written: %1").arg(model.name.toQString()));
progressSetValue(++steps);
}