Fix plugins item not delete

Change-Id: I8dae4579373e1e41b15607a3d197ec2fa42e5665
This commit is contained in:
石博文 2017-03-07 15:51:00 +08:00
parent d772fe206d
commit 389b1f4b63
Notes: Deepin Code Review 2017-03-07 16:14:17 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Tue, 07 Mar 2017 16:14:17 +0800
Reviewed-on: https://cr.deepin.io/21132
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -55,7 +55,7 @@ void DockPluginsController::itemRemoved(PluginsItemInterface * const itemInter,
emit pluginItemRemoved(item);
m_pluginList[itemInter].remove(itemKey);
item->deleteLater();
QTimer::singleShot(1, item, &PluginsItem::deleteLater);
}
//void DockPluginsController::requestRefershWindowVisible()