summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_abstractmobiledevice.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp2
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;
}