remove some unnecessary Boolean checks

- checks for true/false and nullptr
This commit is contained in:
Uwe
2022-12-12 03:12:43 +01:00
committed by Chris Hennes
parent 0e062212b5
commit 0533550f95
6 changed files with 11 additions and 13 deletions

View File

@@ -3225,7 +3225,7 @@ bool StdCmdTextureMapping::isActive()
{
Gui::MDIView* view = getMainWindow()->activeWindow();
return view && view->isDerivedFrom(Gui::View3DInventor::getClassTypeId())
&& (Gui::Control().activeDialog() == nullptr);
&& (!(Gui::Control().activeDialog()));
}
DEF_STD_CMD(StdCmdDemoMode)