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:
2006-01-30 11:30:37 +00:00
parent e193648595
commit ba83c7ffeb

View File

@@ -1366,8 +1366,12 @@ int do_clever_numbuts(char *name, int tot, int winevent)
ScrArea *sa;
BWinEvent temp_bevt;
for (sa= G.curscreen->areabase.first; sa; sa= sa->next) {
while( bwin_qread( sa->win, &temp_bevt ) ) {}
while( bwin_qread( sa->headwin, &temp_bevt ) ) {}
if(sa->win) {
while( bwin_qread( sa->win, &temp_bevt ) ) {}
}
if(sa->headwin) {
while( bwin_qread( sa->headwin, &temp_bevt ) ) {}
}
}
/* Done clearing events */