[AppMenuModel] Don't store actions ourselves

Authored by broulik on Mar 20 2018, 2:23 PM.

Description

[AppMenuModel] Don't store actions ourselves

Always redirect to the ones in m_menu in case they get deleted or otherwise altered.
Also emit dataChanged when an action changes and reset the model when it gets deleted.
This fixes the menu getting confused in LibreOffice 6 with gmenu-dbusmenu-proxy.

CCBUG: 391868

Differential Revision: https://phabricator.kde.org/D11350

Details

Committed
broulikMar 20 2018, 2:23 PM
Differential Revision
D11350: [AppMenuModel] Don't store actions ourselves
Parents
R120:0f17864e92ef: Merge branch 'Plasma/5.12'
Branches
Unknown
Tags
Unknown