The patch to pre-emptify the queues for 'clever numbuts' didn't check for
non-existant windows, causing crash for example in Action window for shapes
This commit is contained in:
@@ -1366,8 +1366,12 @@ int do_clever_numbuts(char *name, int tot, int winevent)
|
|||||||
ScrArea *sa;
|
ScrArea *sa;
|
||||||
BWinEvent temp_bevt;
|
BWinEvent temp_bevt;
|
||||||
for (sa= G.curscreen->areabase.first; sa; sa= sa->next) {
|
for (sa= G.curscreen->areabase.first; sa; sa= sa->next) {
|
||||||
while( bwin_qread( sa->win, &temp_bevt ) ) {}
|
if(sa->win) {
|
||||||
while( bwin_qread( sa->headwin, &temp_bevt ) ) {}
|
while( bwin_qread( sa->win, &temp_bevt ) ) {}
|
||||||
|
}
|
||||||
|
if(sa->headwin) {
|
||||||
|
while( bwin_qread( sa->headwin, &temp_bevt ) ) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Done clearing events */
|
/* Done clearing events */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user