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 b47a0a0a58
commit 5d37581019

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