fix item not free

Change-Id: Ib168254199d6c5cf7960ae402a3f518216dbd5cc
This commit is contained in:
石博文 2017-11-10 16:47:58 +08:00
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

View File

@ -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()