summaryrefslogtreecommitdiff
path: root/libopie2
Unidiff
Diffstat (limited to 'libopie2') (more/less context) (ignore 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() {
66 { 66 {
67 QCopEnvelope( "QPE/System", "aboutToSuspend()" ); 67 QCopEnvelope( "QPE/System", "aboutToSuspend()" );
68 } 68 }
69 qApp->processEvents(); // ensure the qcop call is being processed asap
69 70
70 struct timeval tvs, tvn; 71 struct timeval tvs, tvn;
71 ::gettimeofday ( &tvs, 0 ); 72 ::gettimeofday ( &tvs, 0 );
@@ -87,6 +88,7 @@ bool OAbstractMobileDevice::suspend() {
87 { 88 {
88 QCopEnvelope( "QPE/System", "returnFromSuspend()" ); 89 QCopEnvelope( "QPE/System", "returnFromSuspend()" );
89 } 90 }
91 qApp->processEvents(); // ensure the qcop call is being processed asap
90 92
91 return res; 93 return res;
92} 94}
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}