From f30631f3c8511b752a8738440fa3345c66050364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=8D=9A=E6=96=87?= Date: Thu, 18 May 2017 15:41:17 +0800 Subject: [PATCH] fix popup not hide when show menu Change-Id: Icb645e72ed35324ca08014984f7f306c7ea1f919 --- frame/item/appitem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 0ff40845c..8f8c4fb8b 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -307,7 +307,7 @@ void AppItem::mouseReleaseEvent(QMouseEvent *e) void AppItem::mousePressEvent(QMouseEvent *e) { m_updateIconGeometryTimer->stop(); -// hidePopup(); + hidePopup(); if (e->button() == Qt::RightButton) { @@ -315,8 +315,9 @@ void AppItem::mousePressEvent(QMouseEvent *e) { QMetaObject::invokeMethod(this, "showContextMenu", Qt::QueuedConnection); return; - } else + } else { return QWidget::mousePressEvent(e); + } } if (e->button() == Qt::LeftButton)