Gui: Check for nullptr in activeWindow in CommandView directly
This commit is contained in:
@@ -4065,8 +4065,7 @@ void StdCmdClarifySelection::activated(int iMsg)
|
||||
|
||||
bool StdCmdClarifySelection::isActive()
|
||||
{
|
||||
auto view = qobject_cast<View3DInventor*>(getMainWindow()->activeWindow());
|
||||
return view != nullptr;
|
||||
return qobject_cast<View3DInventor*>(getMainWindow()->activeWindow()) != nullptr;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user