bugfix: disable launcher-item right click event

Change-Id: Icdfdf82844a2f018dbfc7d7054575b658c828908
This commit is contained in:
杨万青 2015-10-09 10:41:35 +08:00
parent 401b77b8db
commit 3e3f557d6a
Notes: Deepin Code Review 2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: <mr.asianwang@gmail.com>
Submitted-by: <mr.asianwang@gmail.com>
Submitted-at: Fri, 09 Oct 2015 10:43:10 +0800
Reviewed-on: https://cr.deepin.io/7606
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -48,6 +48,9 @@ void LauncherItem::mouseReleaseEvent(QMouseEvent *event)
void LauncherItem::slotMousePress(QMouseEvent *event)
{
if (event->button() != Qt::LeftButton)
return;
emit mousePress(event);
hidePreview();
@ -55,6 +58,9 @@ void LauncherItem::slotMousePress(QMouseEvent *event)
void LauncherItem::slotMouseRelease(QMouseEvent *event)
{
if (event->button() != Qt::LeftButton)
return;
emit mouseRelease(event);
m_launcherProcess->startDetached("dde-launcher",QStringList());