[System Tray] Don't try to popup empty QMenu
ClosedPublic

Authored by broulik on May 17 2016, 6:35 PM.

Details

Summary

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.

Test Plan

AppletInterface already has similar code.
Review pending for ContainmentInterface.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 3850.May 17 2016, 6:35 PM
broulik retitled this revision from to [System Tray] Don't try to popup empty QMenu.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added a reviewer: Plasma.
broulik set the repository for this revision to R120 Plasma Workspace.
Restricted Application added a project: Plasma. · View Herald TranscriptMay 17 2016, 6:35 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.May 17 2016, 6:40 PM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.May 17 2016, 6:40 PM
This revision was automatically updated to reflect the committed changes.