Adding actions to KDevelop::ContextMenuExtension after menu is displayed

Maciej Poleski d82ks8djf82msd83hf8sc02lqb5gh5 at gmail.com
Wed Jul 22 17:59:46 UTC 2015


Dnia środa, 22 lipca 2015 19:04:25 piszesz:
> On Wed, Jul 22, 2015 at 5:21 PM, Maciej Poleski
> <d82ks8djf82msd83hf8sc02lqb5gh5 at gmail.com> wrote:
> > Hi,
> >
> > If I add additional actions to KDevelop::ContextMenuExtension after IPlugin::contextMenuExtension(KDevelop::Context* context) finished, then KDevelop crashes. How to add actions to already-displayed context menu?
> 
> Why would you do that? You should add the actions within contextMenuExtension.
> 
> Aleix

Because preparing list of QActions I want add is CPU intensive. On big sources it can take even one second. It means when user right-click it may take even one second to display context menu. During this time GUI is freezed.


More information about the KDevelop-devel mailing list