D22424: TextDocument: remove actions from contextmenu on hide already

René J.V. Bertin noreply at phabricator.kde.org
Thu Jul 18 16:26:43 BST 2019


rjvbb added a comment.


  > I'll activate the debug trace on change of my `lastShownMenu` though
  
  I'm doing this (in my patch from D16882 <https://phabricator.kde.org/D16882> which still applies after reverting D22424 <https://phabricator.kde.org/D22424>):
  
    +        if (menu != lastShownMenu.data()) {
    +            if (lastShownMenu) {
    +                qCWarning(SHELL) << "Added items to new contextmenu" << menu;
    +            }
    +            lastShownMenu = menu;
    +        }
  
  under the assumption that this will print a warning (enabled in qtlogging.ini) when lastShownMenu will be updated but not the 1st time a ctx menu is opened. Is that assumption wrong, because I'm not seeing any warnings after disabling the CTags menu (and restarting KDevelop for good measure).
  Wouldn't it be great if something in my patch prevented the re-creation of the ctx menu instance? O:-)

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D22424

To: kossebau, #kdevelop
Cc: anthonyfieroni, rjvbb, kdevelop-devel, hmitonneau, christiant, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20190718/60a6ae67/attachment.html>


More information about the KDevelop-devel mailing list