From 24c0ae04669e94d554fe8ef49888ffb5a6a00656 Mon Sep 17 00:00:00 2001 From: josef Date: Fri, 18 Oct 2002 11:36:34 +0000 Subject: - increase dialog responsiveness The higher the value (currently 100) is, the faster the modem dials, but lower values guarantee a smoother UI. --- (limited to 'noncore/apps/opie-console') diff --git a/noncore/apps/opie-console/dialer.cpp b/noncore/apps/opie-console/dialer.cpp index 7bf9352..51d4093 100644 --- a/noncore/apps/opie-console/dialer.cpp +++ b/noncore/apps/opie-console/dialer.cpp @@ -224,8 +224,7 @@ QString Dialer::receive() QString buf; char buffer[1024]; int ret; - - qApp->processEvents(); + int counter; while(1) { @@ -247,7 +246,9 @@ qWarning("Receiving: '%s'", buf.latin1()); else if(ret < 0) { if(errno != EAGAIN) reset(); + else if(!(counter++ % 100)) qApp->processEvents(); } + else if(!(counter++ % 100)) qApp->processEvents(); } return QString::null; -- cgit v0.9.0.2