--- 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
}