Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-10-25 08:33:35 +0300
committerJoshua Leung <aligorith@gmail.com>2009-10-25 08:33:35 +0300
commit3af933325113a4075856e8d4287c54019c7cb495 (patch)
tree0ee7fed5fd425e447aff86f3e681689ef10ab339 /source/blender/windowmanager/intern/wm_cursors.c
parentc90e05bb42668f0c99cf313b179c00a1380cb569 (diff)
Fix for crash when doing File -> Open, File -> New (without closing the FileBrowser first)
Diffstat (limited to 'source/blender/windowmanager/intern/wm_cursors.c')
-rw-r--r--source/blender/windowmanager/intern/wm_cursors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c
index e2aedf42bd8..df483f9013e 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -181,7 +181,7 @@ void WM_cursor_grab(wmWindow *win, int wrap, int hide, int *bounds)
void WM_cursor_ungrab(wmWindow *win)
{
if ((G.f & G_DEBUG) == 0)
- if(win)
+ if(win && win->ghostwin)
GHOST_SetCursorGrab(win->ghostwin, GHOST_kGrabDisable, NULL);
}