fix: plugin item not free.

Change-Id: I93e14725f6287570c891cc416dcb7b7df5d7d52f
This commit is contained in:
rekols 2018-05-02 17:01:52 +08:00
parent a3c84e3c98
commit 94fc261e62
Notes: gerrit 2018-05-03 14:29:43 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+1: sbwtw <sbw@sbw.so>
Code-Review+2: rekols <rekols@foxmail.com>
Submitted-by: rekols <rekols@foxmail.com>
Submitted-at: Thu, 03 May 2018 14:29:43 +0800
Reviewed-on: https://cr.deepin.io/34213
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 3 additions and 1 deletions

View File

@ -337,6 +337,8 @@ void DockItemController::pluginItemRemoved(PluginsItem *item)
emit itemRemoved(item);
m_itemList.removeOne(item);
item->deleteLater();
}
void DockItemController::reloadAppItems()

View File

@ -78,7 +78,7 @@ void DockPluginsController::itemRemoved(PluginsItemInterface * const itemInter,
m_pluginList[itemInter].remove(itemKey);
// QTimer::singleShot(1, this, [=] { delete item; });
item->deleteLater();
// item->deleteLater();
}
//void DockPluginsController::requestRefershWindowVisible()