Page Menu
Home
Search
Configure Global Search
Log In
Files
F12643
backtoprev.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Imran Syed (freakabcd)
Nov 13 2013, 2:36 PM
Size
1 KB
Subscribers
None
backtoprev.patch
View Options
Index: source/blender/editors/screen/screen_ops.c
===================================================================
--- source/blender/editors/screen/screen_ops.c (revision 31899)
+++ source/blender/editors/screen/screen_ops.c (working copy)
@@ -65,6 +65,7 @@
#include "UI_interface.h"
#include "wm_window.h"
+#include "wm_event_system.h"
#include "screen_intern.h" /* own module include */
@@ -2702,6 +2703,9 @@
{
bScreen *screen = CTX_wm_screen(C);
ScrArea *sa=NULL;
+
+ wmWindow *win = CTX_wm_window(C);
+ wmEventHandler *handler;
/* search current screen for 'fullscreen' areas */
for (sa=screen->areabase.first; sa; sa=sa->next) {
@@ -2711,7 +2715,14 @@
BKE_report(op->reports, RPT_ERROR, "No fullscreen areas were found.");
return OPERATOR_CANCELLED;
}
-
+
+ /* Search for the fileselect handler and remove it. */
+ /* Perhaps in the future other handlers might need to be removed as well! */
+ for(handler=win->modalhandlers.first; handler; handler=handler->next) {
+ if(handler->type == WM_HANDLER_FILESELECT)
+ BLI_freelinkN(&win->modalhandlers, handler);
+ }
+
ED_screen_full_restore(C, sa);
return OPERATOR_FINISHED;
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7b/69/340aa9219f6202b71fc5237a5fc1
Event Timeline
Log In to Comment