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
This commit is contained in:
parent
b79b52624e
commit
7d0889002c
@ -1025,7 +1025,7 @@ void Icon::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!handled) {
|
if (!handled && geometry().contains(event->pos())) {
|
||||||
emit pressed(true);
|
emit pressed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user