Bug report #16013
Create default actions should not add all the actions every time
|Affected QGIS version:||2.18.2||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23928|
Bug report or feature request?
Open Layer properties dialog --> Actions
Click on "Create default actions": predefined actions are added to the dialog
Click again (this can happen also by mistake): the same actions are added. and again and again... If it was by mistake, you'd then need to removed duplicate functions one by one (so fun!).
I think that this diaog shouldn't allow to have same actions multiple times. Maybe a constraint based on Description (and/or short name?), given that these are items that help identify the actions in other contexts (Identify tool, Attribute tabe) should be added to avoid duplicate items. So, when you hit again the button, only actions that were renamed in the meantime would be added.
2.18.2 and master