mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix item not free
Change-Id: Ib168254199d6c5cf7960ae402a3f518216dbd5cc
This commit is contained in:
parent
3803b3d258
commit
b82d4ac114
Notes:
Deepin Code Review
2017-11-13 09:59:48 +08:00
Verified+1: Anonymous Coward #1000004 Verified+1: <zhaofangfang@linuxdeepin.com> Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Mon, 13 Nov 2017 09:59:48 +0800 Reviewed-on: https://cr.deepin.io/28275 Project: dde/dde-dock Branch: refs/heads/master
@ -76,7 +76,8 @@ void DockPluginsController::itemRemoved(PluginsItemInterface * const itemInter,
|
||||
emit pluginItemRemoved(item);
|
||||
|
||||
m_pluginList[itemInter].remove(itemKey);
|
||||
item->deleteLater();
|
||||
|
||||
QTimer::singleShot(1, this, [=] { delete item; });
|
||||
}
|
||||
|
||||
//void DockPluginsController::requestRefershWindowVisible()
|
||||
|
Loading…
x
Reference in New Issue
Block a user