Merge pull request #5020 from 0penBrain/placement

[Gui] Edit/Placement not active when no object selected
This commit is contained in:
Yorik van Havre
2021-09-13 14:30:04 +02:00
committed by GitHub

View File

@@ -1574,7 +1574,7 @@ void StdCmdPlacement::activated(int iMsg)
bool StdCmdPlacement::isActive(void)
{
return (Gui::Control().activeDialog()==0);
return Gui::Selection().countObjectsOfType(App::GeoFeature::getClassTypeId()) == 1;
}
//===========================================================================