Diffstat (limited to 'libopie2/opiecore/device/odevice_abstractmobiledevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_abstractmobiledevice.cpp | 2 |
1 files changed, 2 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 | } |