Review Request 127947: [ContainmentInterface] Don't try to popup empty QMenu

Kai Uwe Broulik kde at privat.broulik.de
Tue May 17 19:46:45 UTC 2016



> On Mai 17, 2016, 7:41 nachm., David Edmundson wrote:
> > src/scriptengines/qml/plasmoid/containmentinterface.cpp, line 971
> > <https://git.reviewboard.kde.org/r/127947/diff/1/?file=465098#file465098line971>
> >
> >     I think technically it's better to accept the event regardless. You still tried to show a context menu and you don't want the behaviour to be different based on whether there happened to be any entries or not. 
> >     
> >     If AppletInterface did this you'd end up showing a containment menu if you right clicked on an applet when locked down, which would be weird.
> >     
> >     In this case it's purely hypothetical as there's nothing underneath a ContainmentInterface anyway, so I don't really care.

Yeah, right, you still did a click; I got misguided by:

> if (!plugin || plugin->contextualActions().isEmpty()) {
> 
>         event->setAccepted(false);


- Kai Uwe


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127947/#review95551
-----------------------------------------------------------


On Mai 17, 2016, 6:32 nachm., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127947/
> -----------------------------------------------------------
> 
> (Updated Mai 17, 2016, 6:32 nachm.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-framework
> 
> 
> Description
> -------
> 
> With KIOSK restrictions it can happen that a context menu would be empty. In this case just a shadow would show up. Do nothing in this case.
> 
> 
> Diffs
> -----
> 
>   src/scriptengines/qml/plasmoid/containmentinterface.cpp f168002 
> 
> Diff: https://git.reviewboard.kde.org/r/127947/diff/
> 
> 
> Testing
> -------
> 
> AppletInterface already has similar code.
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160517/0701d723/attachment.html>


More information about the Plasma-devel mailing list