From 7d0889002c5e3794ae1c49e00a5fc96b73c9e4d5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 20 Jun 2008 20:48:49 +0000 Subject: [PATCH] only emit pressed when the press event is inside the widget, don't know why it got passed in the first place but caused kickoff to being activated when clicking on the taskbar on some circumstances svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=822626 --- widgets/icon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index dfd246252..cee36bb67 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -1025,7 +1025,7 @@ void Icon::mousePressEvent(QGraphicsSceneMouseEvent *event) } } - if (!handled) { + if (!handled && geometry().contains(event->pos())) { emit pressed(true); }