Fix issues with confirmation prompt on Windows
authorJulian Eisel <eiseljulian@gmail.com>
Fri, 23 Mar 2018 01:00:14 +0000 (02:00 +0100)
committerJulian Eisel <eiseljulian@gmail.com>
Fri, 23 Mar 2018 01:00:14 +0000 (02:00 +0100)
commit529c21acc2e6e0830844a610d4f8d6a9b72a9902
tree14a4888aae58eb1bf6b2caa759cbee6970db7f39
parentaeec19d2e76fc292d21d00090d02c672c3997647
Fix issues with confirmation prompt on Windows

* Pressing "OK" wouldn't close Blender anymore
* Using File -> Quit would use popup version, not OS native window

Cleaned up code a bit to avoid duplicated logic.
source/blender/windowmanager/intern/wm_operators.c
source/blender/windowmanager/intern/wm_window.c
source/blender/windowmanager/wm_window.h