Opened 12 years ago
Closed 12 years ago
#8969 closed enhancement (fixed)
[Patch] Make a non-persistent yes or no option when adding existing members to a relation
| Reported by: | maarten | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 14.01 |
| Component: | Core | Version: | tested |
| Keywords: | Cc: |
Description
Currently, when you add a member to a relation and the member is already in the relation, there is only a global option to mark if you want a message asking you if you want this (message.add_primitive_to_relation). You can set this message to false when you add the member, but then it is persistent.
If you add multiple already existing members to the relation, you have to press yes or no for each member you want to add.
It would be nice to have a non-persistent "yes to all" or "no to all" option in that dialog.
Attachments (1)
Change History (9)
comment:1 by , 12 years ago
by , 12 years ago
| Attachment: | non-persistent-checkbox.patch added |
|---|
comment:2 by , 12 years ago
This option would be useful in almost all dialogs when more than one object is selected (revert, delete ...) or more than one membership is delete (property toggle dialog).
comment:3 by , 12 years ago
| Summary: | Make a non-persistent yes or no option when adding existing members to a relation → [Patch] Make a non-persistent yes or no option when adding existing members to a relation |
|---|
follow-up: 8 comment:5 by , 12 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
windu.2b, thank you for the patch. Instead of using separate preference entries, I decided to use a HashMap to not have the _nonPersistent persisted.
skyper, good point. Feel free to identify more such operations, this cannot easily within the code.
comment:7 by , 12 years ago
| Milestone: | → 14.01 |
|---|
comment:8 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Replying to skyper:
This option would be useful in almost all dialogs when more than one object is selected (revert, delete ...) or more than one membership is delete (property toggle dialog).
Replying to simon04:
skyper, good point. Feel free to identify more such operations, this cannot easily within the code.
For additional actions, please open a new ticket. :-)



I made a patch, which adds a checkbox "do not show again (just this time)". If checked, all primitives are added (or not, depending if you click on the yes or no button), but this option is not recorded : next time, the same question will be asked again.