author | mickeyl <mickeyl> | 2005-08-27 17:19:12 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-08-27 17:19:12 (UTC) |
commit | 85bddcabafcf7a0529e3738f306d63988b7dcbbc (patch) (unidiff) | |
tree | 65f87cbffbcb42e90a47a683c68cdebf69882990 /libopie2/opiecore/device/odevice_zaurus.cpp | |
parent | 193c968b94fd6db646af8a3588e90982a20e3fc5 (diff) | |
download | opie-85bddcabafcf7a0529e3738f306d63988b7dcbbc.zip opie-85bddcabafcf7a0529e3738f306d63988b7dcbbc.tar.gz opie-85bddcabafcf7a0529e3738f306d63988b7dcbbc.tar.bz2 |
call processEvents() to make it more likely^w^w^wsure the QCopEnvelope gets processed
Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 5d48488..2b2467c 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -715,6 +715,7 @@ bool Zaurus::suspend() { | |||
715 | { | 715 | { |
716 | QCopEnvelope( "QPE/System", "aboutToSuspend()" ); | 716 | QCopEnvelope( "QPE/System", "aboutToSuspend()" ); |
717 | } | 717 | } |
718 | qApp->processEvents(); // ensure the qcop call is being processed asap | ||
718 | 719 | ||
719 | struct timeval tvs, tvn; | 720 | struct timeval tvs, tvn; |
720 | ::gettimeofday ( &tvs, 0 ); | 721 | ::gettimeofday ( &tvs, 0 ); |
@@ -737,6 +738,7 @@ bool Zaurus::suspend() { | |||
737 | { | 738 | { |
738 | QCopEnvelope( "QPE/System", "returnFromSuspend()" ); | 739 | QCopEnvelope( "QPE/System", "returnFromSuspend()" ); |
739 | } | 740 | } |
741 | qApp->processEvents(); // ensure the qcop call is being processed asap | ||
740 | 742 | ||
741 | return res; | 743 | return res; |
742 | } | 744 | } |