Quote:
Originally Posted by chaley
I didn't note that the lifetime of the button was different from the lifetime of the menu.
|
The reason for that is that the button (to be precise, the QAction) comes from the .ui file where as the menu is created programmatically and assigned to the action dynamically, each time calibre is reconfigured.