[Gui] Edit/Placement not active when no object selected
Copied from 'Std_Edit'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user