mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: plugin item not free.
Change-Id: I93e14725f6287570c891cc416dcb7b7df5d7d52f
This commit is contained in:
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
@ -337,6 +337,8 @@ void DockItemController::pluginItemRemoved(PluginsItem *item)
|
||||
emit itemRemoved(item);
|
||||
|
||||
m_itemList.removeOne(item);
|
||||
|
||||
item->deleteLater();
|
||||
}
|
||||
|
||||
void DockItemController::reloadAppItems()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user