Bugfix #27058
[blender.git] / source / blender / editors / interface / interface_panel.c
index b47194ba1b4a4c66c41acb52b54647a598af1545..6677f2b1bae065318971a1d9839192e0603c7b61 100644 (file)
@@ -1211,7 +1211,7 @@ static void panel_activate_state(const bContext *C, Panel *pa, uiHandlePanelStat
                MEM_freeN(data);
                pa->activedata= NULL;
 
-               WM_event_remove_ui_handler(&win->modalhandlers, ui_handler_panel, ui_handler_remove_panel, pa);
+               WM_event_remove_ui_handler(&win->modalhandlers, ui_handler_panel, ui_handler_remove_panel, pa, 0);
        }
        else {
                if(!data) {