Sketcher: fix regression in CmdSketcherValidateSketch
Do not enable the command if another task dialog is still active
This commit is contained in:
@@ -742,6 +742,8 @@ void CmdSketcherValidateSketch::activated(int iMsg)
|
||||
|
||||
bool CmdSketcherValidateSketch::isActive(void)
|
||||
{
|
||||
if (Gui::Control().activeDialog())
|
||||
return false;
|
||||
return Gui::Selection().countObjectsOfType(Sketcher::SketchObject::getClassTypeId()) == 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user