Salome HOME
A fix for activate/deactivate selection from destructor. It is possible, that selecti...
authornds <natalia.donis@opencascade.com>
Thu, 4 Jun 2015 08:50:09 +0000 (11:50 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 4 Jun 2015 08:50:09 +0000 (11:50 +0300)
commita0cc0d2625f613fd29cc53f9a3c8dfb56e40406a
treebd5be5913d8c37a48d1ce034215f474444a1a62a
parent1606a334fe827e5590545762bdf61c2131274660
A fix for activate/deactivate selection from destructor. It is possible, that selection mode is not correct by a widget activation.

Scenario: sketch, create a poligon, start parallel operation, select two lines, result - a create new parallel feature operation is started. The first control is active, but previous parallel constraint is selectable. This is wrong. If the next operation is translation, the parallel constraint selection leads to crash.
Reason: The activateShapeSselection(false) called in the destructor of widget shape selector is called after starting/activation of a widget in a new operation. So, it clears the previous activation of the current operation, deactivate reset it.
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp
src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp