Skip to content

Commit

Permalink
Sketcher: fix regression in CmdSketcherValidateSketch
Browse files Browse the repository at this point in the history
Do not enable the command if another task dialog is still active
  • Loading branch information
wwmayer committed Oct 22, 2020
1 parent 9bd3163 commit ee79991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Sketcher/Gui/Command.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit ee79991

Please sign in to comment.