Skip to content
GitLab
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
6e9d16e7
Commit
6e9d16e7
authored
Oct 11, 2020
by
Konrad Materka
Committed by
Nate Graham
Oct 12, 2020
Browse files
[applets/systemtray] Fix applet removal when first
parent
c5fd9772
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/systemtray/systemtraymodel.cpp
View file @
6e9d16e7
...
...
@@ -211,7 +211,7 @@ void PlasmoidModel::addApplet(Plasma::Applet *applet)
void
PlasmoidModel
::
removeApplet
(
Plasma
::
Applet
*
applet
)
{
int
idx
=
indexOfPluginId
(
applet
->
pluginMetaData
().
pluginId
());
if
(
idx
>
0
)
{
if
(
idx
>
=
0
)
{
m_items
[
idx
].
applet
=
nullptr
;
dataChanged
(
index
(
idx
,
0
),
index
(
idx
,
0
));
applet
->
disconnect
(
this
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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