Fix context menu actions when search bar is enabled

Authored by tcanabrava on Jan 24 2020, 11:52 AM.

Description

Fix context menu actions when search bar is enabled

The actions are destroyed during a focusIn / focusOut, and recreated
with the same content but different memory positions, and that
killed the QActions inside of the menu.

To trigger this is simple, open the search bar, type some url in
konsole, and right click on it: you will not see the actions
to copy and go to url.

moving the related code to QSharedPointer fixes this by delaying
the destruction of the pointer untill the menu is closed.

Details

Committed
tcanabravaJan 24 2020, 11:52 AM
Parents
R319:967c42a1b094: Support status report requests for text-colors
Branches
Unknown
Tags
Unknown