summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-29 20:58:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-29 21:17:18 +0100
commitcee3e3d76f2edd865e676ddaebe70791231aa07a (patch)
tree262ee3b05d8e796a89ba3e7f8eae9013f412812f /basctl
parentc103554eb67fd75b45b90699c7c6ed9e0cafb755 (diff)
coverity#1296211 pCurWin == pNewWin at this point
should silence coverity#1296211 Explicit null dereferenced Change-Id: I0798db1b88bfec94139995db552029b18a9562af
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index b713ffe1e878..1013be9b85e6 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -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