Sketcher: fix regression in CmdSketcherValidateSketch

Do not enable the command if another task dialog is still active
This commit is contained in:
wmayer
2020-10-22 14:16:37 +02:00
parent 9bd31637d7
commit ee79991c46

View File

@@ -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;
}