author | josef <josef> | 2002-10-18 11:36:34 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-18 11:36:34 (UTC) |
commit | 24c0ae04669e94d554fe8ef49888ffb5a6a00656 (patch) (unidiff) | |
tree | 96e48d488555d789de7ac73797d016c7e8262956 | |
parent | 3484cd354a54bcc20d389b123423028e09d884df (diff) | |
download | opie-24c0ae04669e94d554fe8ef49888ffb5a6a00656.zip opie-24c0ae04669e94d554fe8ef49888ffb5a6a00656.tar.gz opie-24c0ae04669e94d554fe8ef49888ffb5a6a00656.tar.bz2 |
- increase dialog responsiveness
The higher the value (currently 100) is, the faster the modem dials, but lower
values guarantee a smoother UI.
-rw-r--r-- | noncore/apps/opie-console/dialer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 | |||
@@ -223,10 +223,9 @@ QString Dialer::receive() | |||
223 | { | 223 | { |
224 | QString buf; | 224 | QString buf; |
225 | char buffer[1024]; | 225 | char buffer[1024]; |
226 | int ret; | 226 | int ret; |
227 | 227 | int counter; | |
228 | qApp->processEvents(); | ||
229 | 228 | ||
230 | while(1) | 229 | while(1) |
231 | { | 230 | { |
232 | ret = ::read(m_fd, buffer, sizeof(buffer)); | 231 | ret = ::read(m_fd, buffer, sizeof(buffer)); |
@@ -246,9 +245,11 @@ qWarning("Receiving: '%s'", buf.latin1()); | |||
246 | } | 245 | } |
247 | else if(ret < 0) | 246 | else if(ret < 0) |
248 | { | 247 | { |
249 | if(errno != EAGAIN) reset(); | 248 | if(errno != EAGAIN) reset(); |
249 | else if(!(counter++ % 100)) qApp->processEvents(); | ||
250 | } | 250 | } |
251 | else if(!(counter++ % 100)) qApp->processEvents(); | ||
251 | } | 252 | } |
252 | 253 | ||
253 | return QString::null; | 254 | return QString::null; |
254 | } | 255 | } |