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
Plasma Workspace
Commits
a8b61350
Commit
a8b61350
authored
Dec 08, 2021
by
Alexander Lohnau
💬
Committed by
Nate Graham
Dec 08, 2021
Browse files
lookandfeel: Add missing check if list of files is empty
BUG: 439797 (cherry picked from commit
d168d2a5
)
parent
c4ae3c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/lookandfeel/kcm.cpp
View file @
a8b61350
...
...
@@ -123,7 +123,9 @@ void KCMLookandFeel::knsEntryChanged(KNSCore::EntryWrapper *wrapper)
if
(
entry
.
status
()
==
KNS3
::
Entry
::
Deleted
&&
!
entry
.
uninstalledFiles
().
isEmpty
())
{
removeItemFromModel
();
}
else
if
(
entry
.
status
()
==
KNS3
::
Entry
::
Installed
&&
!
entry
.
installedFiles
().
isEmpty
())
{
removeItemFromModel
();
// In case we updated it we don't want to have it in twice
if
(
!
entry
.
uninstalledFiles
().
isEmpty
())
{
removeItemFromModel
();
// In case we updated it we don't want to have it in twice
}
KPackage
::
Package
pkg
=
KPackage
::
PackageLoader
::
self
()
->
loadPackage
(
QStringLiteral
(
"Plasma/LookAndFeel"
));
pkg
.
setPath
(
entry
.
installedFiles
().
constFirst
());
addKPackageToModel
(
pkg
);
...
...
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