From 71fd6dfa476e384d67ce3f193def326416907b15 Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Mon, 16 Jul 2018 18:34:21 -0400 Subject: [PATCH] [Companion][AppData] Fix firmware version storage path when reading. --- companion/src/storage/appdata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/storage/appdata.h b/companion/src/storage/appdata.h index c4a67c560..3ffa7d688 100644 --- a/companion/src/storage/appdata.h +++ b/companion/src/storage/appdata.h @@ -315,7 +315,7 @@ class FwRevision: public CompStoreObj { Q_OBJECT public slots: - inline int get(const QString & fwType) const { return m_settings.value(fwType, 0).toInt(); } + inline int get(const QString & fwType) const { return m_settings.value(settingsPath() % fwType, 0).toInt(); } inline void set(const QString & fwType, const int fwRevision) const { store(QString("%1").arg(fwRevision), fwType); } inline void remove(const QString & tag) const { clear(tag); } inline void resetAll() override { clear(propertyGroup(), ""); }