Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
f2d87ea7
Commit
f2d87ea7
authored
May 10, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when rendering a delegate that extends an unexisting component
BUG: 394048
parent
5d659363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
libdiscover/backends/PackageKitBackend/AppPackageKitResource.cpp
...over/backends/PackageKitBackend/AppPackageKitResource.cpp
+8
-3
No files found.
libdiscover/backends/PackageKitBackend/AppPackageKitResource.cpp
View file @
f2d87ea7
...
...
@@ -46,9 +46,14 @@ QString AppPackageKitResource::name() const
QString
ret
;
if
(
!
m_appdata
.
extends
().
isEmpty
())
{
auto
components
=
backend
()
->
componentsById
(
m_appdata
.
extends
().
constFirst
());
Q_ASSERT
(
!
components
.
isEmpty
());
ret
=
components
.
constFirst
().
name
()
+
QStringLiteral
(
" - "
)
+
m_appdata
.
name
();
}
else
if
(
components
.
isEmpty
())
qWarning
()
<<
"couldn't find"
<<
m_appdata
.
extends
()
<<
"which is supposedly extended by"
<<
m_appdata
.
id
();
else
ret
=
components
.
constFirst
().
name
()
+
QStringLiteral
(
" - "
)
+
m_appdata
.
name
();
}
if
(
ret
.
isEmpty
())
ret
=
m_appdata
.
name
();
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
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