-rw-r--r-- | libopie2/opiecore/device/odevice_abstractmobiledevice.cpp | 2 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp b/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp index dbe9364..b446d05 100644 --- a/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp +++ b/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp @@ -66,6 +66,7 @@ bool OAbstractMobileDevice::suspend() { { QCopEnvelope( "QPE/System", "aboutToSuspend()" ); } + qApp->processEvents(); // ensure the qcop call is being processed asap struct timeval tvs, tvn; ::gettimeofday ( &tvs, 0 ); @@ -87,6 +88,7 @@ bool OAbstractMobileDevice::suspend() { { QCopEnvelope( "QPE/System", "returnFromSuspend()" ); } + qApp->processEvents(); // ensure the qcop call is being processed asap return res; } 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() { { QCopEnvelope( "QPE/System", "aboutToSuspend()" ); } + qApp->processEvents(); // ensure the qcop call is being processed asap struct timeval tvs, tvn; ::gettimeofday ( &tvs, 0 ); @@ -737,6 +738,7 @@ bool Zaurus::suspend() { { QCopEnvelope( "QPE/System", "returnFromSuspend()" ); } + qApp->processEvents(); // ensure the qcop call is being processed asap return res; } |