<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, davidedmundson.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />broulik requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11350">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Always redirect to the ones in <tt style="background: #ebebeb; font-size: 13px;">m_menu</tt> in case they get deleted or otherwise altered.<br />
Also emit <tt style="background: #ebebeb; font-size: 13px;">dataChanged</tt> when an action changes and reset the model when it gets deleted.<br />
This fixes the menu getting confused in LibreOffice 6 with gmenu-dbusmenu-proxy.</p>

<p>CCBUG: 391868</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>It does not fix the unresponsive/empty "File" menu item I get when running <tt style="background: #ebebeb; font-size: 13px;">soffice --writer</tt> directly, needs further investigation, but the appmenu and window menu are no longer intermingled.<br />
It also fixes crashes (dangling pointer) I had when a menu item got removed</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11350">https://phabricator.kde.org/D11350</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/appmenu/plugin/appmenumodel.cpp<br />
applets/appmenu/plugin/appmenumodel.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, davidedmundson<br /><strong>Cc: </strong>plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>