Scenario: create a sketch, start creation of an extrusion, select a sketch, select an orthogonal plane, abort(selector is active). Crash
/// Returns all property panel's widget created by WidgetFactory
virtual const QList<ModuleBase_ModelWidget*>& modelWidgets() const = 0;
+ /// Removes all widgets in the widget area of the property panel
+ virtual void cleanContent() = 0;
+
/// Editing mode depends on mode of current operation. This value is defined by it.
/// \param isEditing state of editing mode flag
virtual void setEditingMode(bool isEditing) { myIsEditing = isEditing; }
emit aborted();
stopOperation();
+ // is is necessary to deactivate current widgets before the model operation is aborted
+ // because abort removes the feature and activated filters should not check it
+ propertyPanel()->cleanContent();
ModelAPI_Session::get()->abortOperation();
emit stopped();
virtual const QList<ModuleBase_ModelWidget*>& modelWidgets() const;
/// Removes all widgets in the widget area of the property panel
- void cleanContent();
+ virtual void cleanContent();
/// Returns currently active widget
virtual ModuleBase_ModelWidget* activeWidget() const { return myActiveWidget; }