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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-08 02:58:18 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-08 03:00:51 +0400
commit51263c6637906f1f381f3b535120cba163b5ab40 (patch)
tree484bbc3310052a84ef2690d146b0f98ca8950a5a /source/blender/windowmanager/intern/wm_files.c
parent8e5b02359b8590ac84afe7a61dd9a6dc67cd632e (diff)
Fix T37731: some window manager operators unnecessarily required a window to be active.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 593912890ad..09192c5c2ec 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -977,7 +977,7 @@ int wm_homefile_write_exec(bContext *C, wmOperator *op)
int fileflags;
/* check current window and close it if temp */
- if (win->screen->temp)
+ if (win && win->screen->temp)
wm_window_close(C, wm, win);
/* update keymaps in user preferences */