fix: popup not shown

Change-Id: I1dfd38e834a4aff8e42f80f4354a887ab3fa0e7c
This commit is contained in:
石博文 2018-03-27 15:28:09 +08:00
parent ef327aa748
commit 0a0b60aa5f
Notes: gerrit 2018-03-27 10:00:31 +00:00
Verified+1: Anonymous Coward #1000004
Verified+1: <yefei@linuxdeepin.com>
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Tue, 27 Mar 2018 10:00:30 +0000
Reviewed-on: https://cr.deepin.io/33061
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -132,8 +132,7 @@ void DockItem::enterEvent(QEvent *e)
{
m_hover = true;
m_hoverEffect->setHighlighting(true);
if (!PopupWindow->model())
m_popupTipsDelayTimer->start();
m_popupTipsDelayTimer->start();
update();
@ -221,7 +220,7 @@ void DockItem::onContextMenuAccepted()
void DockItem::showHoverTips()
{
// another model popup window is alread exists
if (PopupWindow->isVisible() && PopupWindow->model())
if (PopupWindow->model())
return;
// if not in geometry area