src/hbwidgets/devicedialogs/hbdevicemessageboxsymbian.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 7 923ff622b8b9
--- a/src/hbwidgets/devicedialogs/hbdevicemessageboxsymbian.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbwidgets/devicedialogs/hbdevicemessageboxsymbian.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -361,11 +361,15 @@
     if (aShow) {
         mReceivedButton = CHbDeviceMessageBoxSymbian::EInvalidButton;
         error = mDeviceDialog->Show(KDeviceDialogType, *parameters, this);
-        User::LeaveIfError(error);
+        if (error != KErrNone) {
+            User::Leave(error); // error can be positive or negative
+        }
         mShowCalled = true;
     } else {
         error = mDeviceDialog->Update(*parameters);
-        User::LeaveIfError(error);
+        if (error != KErrNone) {
+            User::Leave(error); // error can be positive or negative
+        }
     }
     CleanupStack::PopAndDestroy(); // parameters
 }