View Issue Details

IDProjectCategoryView StatusLast Update
0001838SketcherFeaturepublic2014-12-29 15:47
Reporterbejant Assigned Towmayer  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.14 
Summary0001838: When In Sketcher Make It Difficult To Mistakenly Delete A Feature
DescriptionWhen editing a Sketch sometimes the user wants to toggle visibility of a Feature in the tree view to Off. If the Feature is still selected in the tree view after the user switches back to Sketcher, chooses an item of geometry in the 3D view, and presses the Delete key to delete that geometry, the Feature from the tree view is deleted instead of the geometry in the 3D view.

Relevant forum post (have a look at the bottom of it):
http://forum.freecadweb.org/viewtopic.php?f=3&t=7813#p64133
Steps To Reproduce1. As an example open this .fcstd file from the forum:
http://forum.freecadweb.org/download/file.php?id=9242

2. Double click "Sketch" to edit it.

3. Click on the Model tab, select "Fusion002", and press Space-bar to toggle visibility to Off.

4. Click the Tasks tab.

5. In the 3D view, select the top arc and press the Delete key.

6. The arc remains, but "Fusion002" is deleted and no warning or indication is given to the user that he has deleted the Feature "Fusion002"
Additional InformationTested using:

OS: Ubuntu 14.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4204 (Git)
Branch: master
Hash: d354e21ce532b7d285ca0417810efd383e92f299
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
TagsNo tags attached.
FreeCAD Information

Relationships

related to 0001483 closedwmayer FreeCAD Bad Behavior in Part Design After Bug Fix. 

Activities

DeepSOIC

2014-11-24 10:54

developer   ~0005341

+1 here!
I've been wondering a few times, why does FreeCAD sometimes ask me if I really want to delete something that has dependencies on. I can't remember any case where I had actually deleted anything useful by such an accident, but it may have happened.

bejant

2014-12-11 14:04

reporter   ~0005366

I'd like to clarify the description. Instead of reading:

"If the Feature is still selected in the tree view after the user switches back to Sketcher, chooses an item of geometry in the 3D view."

it should read:
"... chooses an item of SKETCHER geometry in the 3D view."

wmayer

2014-12-25 17:57

administrator   ~0005441

What do you think about this?

1. when an object is in editing mode then only this object handles the Delete event even if it's not selected.
2. in case the whole object is selected that is in edit mode but no sub-elements then nothing will happen

DeepSOIC

2014-12-25 18:15

developer   ~0005442

Sounds good to me. But a message box would help a lot if I was really up to delete something in tree view, and just forgot that I am editing something.

Related Changesets

FreeCAD: master e8802adc

2014-12-25 22:43:09

wmayer

Details Diff
+ fixes 0001838: When In Sketcher Make It Difficult To Mistakenly Delete A Feature Affected Issues
0001838
mod - src/Gui/CommandDoc.cpp Diff File
mod - src/Mod/Sketcher/Gui/ViewProviderSketch.cpp Diff File

Issue History

Date Modified Username Field Change
2014-11-24 04:12 bejant New Issue
2014-11-24 10:54 DeepSOIC Note Added: 0005341
2014-12-11 14:04 bejant Note Added: 0005366
2014-12-25 17:57 wmayer Note Added: 0005441
2014-12-25 18:15 DeepSOIC Note Added: 0005442
2014-12-25 22:40 wmayer Changeset attached => FreeCAD Master master e8802adc
2014-12-25 22:40 wmayer Assigned To => wmayer
2014-12-25 22:40 wmayer Status new => closed
2014-12-25 22:40 wmayer Resolution open => fixed
2014-12-29 15:47 wmayer Relationship added related to 0001483