Read dc-firmware-version: filter return value (null-character)

This commit is contained in:
2024-01-31 12:22:18 +01:00
parent 14755cd5b4
commit 0cc89cefab
3 changed files with 9 additions and 2 deletions

View File

@@ -125,6 +125,9 @@ QList<QString> PersistentData::uniqueKeys() const {
void PersistentData::setDCFirmwareVersion(const QString & fw_version)
{
// there must be a version string!
if (fw_version.size() < 1) return;
if (this->hash["dc_fw_version"].toString() != fw_version) {
this->isChangedFlag = true;
this->hash.insert("dc_fw_version", fw_version);