Commit 8ffd022f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: Make sure we initalise the device defaults

BUG: 435785
parent 33edaebc
......@@ -27,6 +27,7 @@ FwupdResource::FwupdResource(FwupdDevice *device, const QString &id, AbstractRes
{
Q_ASSERT(!m_name.isEmpty());
setObjectName(m_name);
setDeviceDetails(device);
}
QString FwupdResource::availableVersion() const
......
......@@ -78,7 +78,6 @@ public:
void setState(AbstractResource::State state);
void setReleaseDetails(FwupdRelease *release);
void setDeviceDetails(FwupdDevice *device);
QString id() const
{
......@@ -118,6 +117,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