coverity#1296211 pCurWin == pNewWin at this point

should silence

coverity#1296211 Explicit null dereferenced

Change-Id: I0798db1b88bfec94139995db552029b18a9562af
This commit is contained in:
Caolán McNamara 2015-04-29 20:58:48 +01:00
parent c103554eb6
commit cee3e3d76f

View File

@ -1003,7 +1003,7 @@ void Shell::SetCurWindow( BaseWindow* pNewWin, bool bUpdateTabBar, bool bRemembe
while ( pFocusWindow && ( pFocusWindow != pFrameWindow ) )
pFocusWindow = pFocusWindow->GetParent();
if ( pFocusWindow ) // Focus in BasicIDE
pNewWin->GrabFocus();
pCurWin->GrabFocus();
}
}
else