Commit e0390919 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

fwupd: Make sure we initalise the device defaults

BUG: 435785
(cherry picked from commit 8ffd022f)
parent 4f627c75
......@@ -25,6 +25,7 @@ FwupdResource::FwupdResource(FwupdDevice* device, const QString &id, AbstractRes
{
Q_ASSERT(!m_name.isEmpty());
setObjectName(m_name);
setDeviceDetails(device);
}
QString FwupdResource::availableVersion() const
......
......@@ -54,7 +54,6 @@ public:
void setState(AbstractResource::State state);
void setReleaseDetails(FwupdRelease *release);
void setDeviceDetails(FwupdDevice* device);
QString id() const { return m_id; }
QString deviceId() const { return m_deviceID; }
......@@ -67,6 +66,8 @@ public:
QString cacheFile() const;
private:
void setDeviceDetails(FwupdDevice *device);
const QString m_id;
const QString m_name;
const QString m_deviceID;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment