get NetEvents from modeless dialog

This commit is contained in:
chombier 2001-04-10 16:41:52 +00:00
parent aa7dcf087c
commit ef6a38a85f
1 changed files with 10 additions and 2 deletions

View File

@ -15,6 +15,9 @@
#include "tekrgmac.proto.h"
#include "rsinterf.proto.h"
#include "event.proto.h"
#include "netevent.proto.h"
extern void ssh2_sched();
extern MenuHandle myMenus[];
@ -29,8 +32,13 @@ pascal void movableModalDialog(ModalFilterUPP filter, short *theItem)
SetPort(thisDialog);
for(;;) {
WaitNextEvent(everyEvent, &theEvent, 20, 0L);
if( (*theItem = preFilterEvent(thisDialog, &theEvent)) != 0)
WaitNextEvent(everyEvent, &theEvent, gApplicationPrefs->TimeSlice, 0L);
DoNetEvents();
ssh2_sched();
SetPort(thisDialog);
if ((*theItem = preFilterEvent(thisDialog, &theEvent)) != 0)
break;
if (filter != nil) {