Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
e0390919
Commit
e0390919
authored
Apr 15, 2021
by
Aleix Pol Gonzalez
🐧
Committed by
Nate Graham
Apr 15, 2021
Browse files
fwupd: Make sure we initalise the device defaults
BUG: 435785
(cherry picked from commit
8ffd022f
)
parent
4f627c75
Changes
2
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FwupdBackend/FwupdResource.cpp
View file @
e0390919
...
...
@@ -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
...
...
libdiscover/backends/FwupdBackend/FwupdResource.h
View file @
e0390919
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment