Usability issue: unwanted deletion of objects from non-active document

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
galou_breizh
Posts: 252
Joined: Wed Sep 15, 2010 9:38 am

Usability issue: unwanted deletion of objects from non-active document

Postby galou_breizh » Fri May 04, 2018 8:43 am

There is a usability issue in FreeCAD that allows me to unfortunately delete an object from a non-active document.

This is how you can reproduce it:
- Have two documents
- Activate doc1 and select an object, let's call it object1
- Activate doc2 by clicking on its tab and select an object in the 3D view, let's call it object2
- Notice (the problem actually arises if you don't notice!) that object1 is still selected
- Delete either by pressing Delete on the keyboard or right-clicking on object2
- Ouch! object1 is also deleted.

If you have a tree which is larger that the space in the dialog, which happens easily, you easily miss to notice that object1 is still selected. If you select object2 in the tree directly, then object1 gets deselected. The problem arises only by selecting object2 in the 3D view.

In think a warning when deleting an object from an inactive document would be the bare minimum.

Do you see/want any other solutions?

Thanks,
Gaël
galou_breizh
Posts: 252
Joined: Wed Sep 15, 2010 9:38 am

Re: Usability issue: unwanted deletion of objects from non-active document

Postby galou_breizh » Fri May 04, 2018 8:48 am

This was actually already discussed in https://forum.freecadweb.org/viewtopic.php?f=34&t=20251 but I must have search with the wrong keywords and didn't find it. Anyway, it didn't catch much attention, so I this it's good to repeat.
chrisb
Posts: 16831
Joined: Tue Mar 17, 2015 9:14 am

Re: Usability issue: unwanted deletion of objects from non-active document

Postby chrisb » Fri May 04, 2018 9:48 am

User avatar
HarryGeier
Posts: 1128
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: Usability issue: unwanted deletion of objects from non-active document

Postby HarryGeier » Fri May 04, 2018 11:26 am

+1
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
galou_breizh
Posts: 252
Joined: Wed Sep 15, 2010 9:38 am

Re: Usability issue: unwanted deletion of objects from non-active document

Postby galou_breizh » Fri May 04, 2018 12:54 pm

chrisb wrote:
Fri May 04, 2018 9:48 am
Should I merge this with Do we need more that one document in the tree view?
No please don't merge, this other topic is more general and not as urgent as this one.
User avatar
sgrogan
Posts: 5201
Joined: Wed Oct 22, 2014 5:02 pm

Re: Usability issue: unwanted deletion of objects from non-active document

Postby sgrogan » Fri May 04, 2018 9:38 pm

galou_breizh wrote:
Fri May 04, 2018 12:54 pm
No please don't merge, this other topic is more general and not as urgent as this one.
I agree. I think this should be considered a bug. We had this issue before with selections in 2 documents in the tree view and it was fixed.
galou_breizh
Posts: 252
Joined: Wed Sep 15, 2010 9:38 am

Re: Usability issue: unwanted deletion of objects from non-active document

Postby galou_breizh » Mon May 14, 2018 1:46 pm

Issue 3477.

Gaël
wandererfan
Posts: 2770
Joined: Tue Nov 06, 2012 5:42 pm

Re: Usability issue: unwanted deletion of objects from non-active document

Postby wandererfan » Mon May 28, 2018 4:23 pm

This should be fixed by git commit 0ea75683.