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
8ffd022f
Commit
8ffd022f
authored
Apr 15, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
fwupd: Make sure we initalise the device defaults
BUG: 435785
parent
33edaebc
Changes
2
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FwupdBackend/FwupdResource.cpp
View file @
8ffd022f
...
...
@@ -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
...
...
libdiscover/backends/FwupdBackend/FwupdResource.h
View file @
8ffd022f
...
...
@@ -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
;
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
e0390919
·
Apr 15, 2021
mentioned in commit
e0390919
mentioned in commit e039091932dc607f15fdfded875dc487ecd6949c
Toggle commit list
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