Commit 6e9d16e7 authored by Konrad Materka's avatar Konrad Materka Committed by Nate Graham

[applets/systemtray] Fix applet removal when first

parent c5fd9772
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment