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!
Post Reply
galou_breizh
Posts: 437
Joined: Wed Sep 15, 2010 9:38 am

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

Post by galou_breizh »

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: 437
Joined: Wed Sep 15, 2010 9:38 am

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

Post by galou_breizh »

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
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

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

Post by chrisb »

A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
HarryGeier
Veteran
Posts: 1231
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

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

Post by HarryGeier »

+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: 437
Joined: Wed Sep 15, 2010 9:38 am

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

Post by galou_breizh »

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
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

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

Post by sgrogan »

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.
"fight the good fight"
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

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

Post by wandererfan »

This should be fixed by git commit 0ea75683.
Post Reply