Part Design: Fillet: Task: cleanup upon dialog rejection

This commit is contained in:
blobfish 2015-05-04 12:48:37 -04:00 committed by Stefan Tröger
parent 05f9ee5af2
commit e826e7a683
2 changed files with 3 additions and 0 deletions

View File

@ -1219,6 +1219,8 @@ void makeChamferOrFillet(Gui::Command* cmd, const std::string& which)
QObject::tr("Select an edge, face or body. Only one body is allowed."));
return;
}
Gui::Selection().clearSelection();
if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"),

View File

@ -238,6 +238,7 @@ bool TaskDlgDressUpParameters::reject()
// roll back the done things
Gui::Command::abortCommand();
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().resetEdit()");
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.recompute()");
// Body housekeeping
PartDesign::Body* activeBody = Gui::Application::Instance->activeView()->getActiveObject<PartDesign::Body*>(PDBODYKEY);