Read dc-firmware-version: filter return value (null-character)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user