Add template based SelectionSingleton::countObjectsOfType
Also convert code to use this new method
This commit is contained in:
@@ -141,7 +141,7 @@ void CmdSketcherToggleConstruction::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
// Option A: nothing is selected change creation mode from/to construction
|
||||
if (Gui::Selection().countObjectsOfType(Sketcher::SketchObject::getClassTypeId()) == 0) {
|
||||
if (Gui::Selection().countObjectsOfType<Sketcher::SketchObject>() == 0) {
|
||||
|
||||
Gui::CommandManager& rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user