mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Something internal in KDE itself adds child QObjects to menus, so the code which tries to find the last action in the menu fails and returns a QObject instead of a QAction, leading to an exception in the insertAction call. This is all too fragile anyway, so avoid it by: - Just creating the models menu directly in the ui - Exposing this via interface for use in the processing plugin Now there's no risk of this code breaking in future if the Project menu is re-arranged.