From: vsv Date: Thu, 30 Oct 2014 14:56:39 +0000 (+0300) Subject: Issue #206: Clear selection after create operation commit X-Git-Tag: V_0.5~58^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cdd9efd8fbc75f120188ae16eed7471dc6492ac3;p=modules%2Fshaper.git Issue #206: Clear selection after create operation commit --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 035444ba9..634e1d25a 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -186,6 +186,7 @@ void PartSet_Module::onOperationStopped(ModuleBase_Operation* theOperation) aDisplayer->activate(*anIt, aModes); } aDisplayer->activate(aFeature, aModes); + aDisplayer->clearSelected(); } } }// else { @@ -217,24 +218,6 @@ void PartSet_Module::onMousePressed(QMouseEvent* theEvent) dynamic_cast(workshop()->currentOperation()); if (aPreviewOp) { ModuleBase_ISelection* aSelection = workshop()->selection(); - // Initialise operation with preliminary selection - //QList aSelected = aSelection->getSelected(); - //QList aHighlighted = aSelection->getHighlighted(); - //QList aObjList; - //bool aHasShift = (theEvent->modifiers() & Qt::ShiftModifier); - //if (aHasShift) { - // foreach(ModuleBase_ViewerPrs aPrs, aSelected) - // aObjList.append(aPrs.object()); - - // foreach (ModuleBase_ViewerPrs aPrs, aHighlighted) { - // if (!aObjList.contains(aPrs.object())) - // aObjList.append(aPrs.object()); - // } - //} else { - // foreach(ModuleBase_ViewerPrs aPrs, aHighlighted) - // aObjList.append(aPrs.object()); - //} - //onSetSelection(aObjList); aPreviewOp->mousePressed(theEvent, myWorkshop->viewer(), aSelection); } }