Merge pull request #19019 from hyarion/refactor/countObjectsOfType
Refactor countObjectsOfType in selection and document
This commit is contained in:
@@ -99,7 +99,7 @@ void CmdInspectElement::activated(int)
|
||||
bool CmdInspectElement::isActive()
|
||||
{
|
||||
App::Document* doc = App::GetApplication().getActiveDocument();
|
||||
if (!doc || doc->countObjectsOfType(Inspection::Feature::getClassTypeId()) == 0) {
|
||||
if (!doc || doc->countObjectsOfType<Inspection::Feature>() == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user