mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
bugfix: disable launcher-item right click event
Change-Id: Icdfdf82844a2f018dbfc7d7054575b658c828908
This commit is contained in:
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
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user