diff -r 11d3954df52a -r 627c4a0fd0e7 src/hbwidgets/devicedialogs/hbdeviceprogressdialogsymbian.cpp --- a/src/hbwidgets/devicedialogs/hbdeviceprogressdialogsymbian.cpp Thu May 27 13:10:59 2010 +0300 +++ b/src/hbwidgets/devicedialogs/hbdeviceprogressdialogsymbian.cpp Fri Jun 11 13:58:22 2010 +0300 @@ -156,8 +156,10 @@ CleanupStack::PopAndDestroy(); // actionData } iButton.iFlags.iPressed = false; - User::LeaveIfError(iDeviceDialog->Show(KPluginIdentifier, *iVariantMap, this)); - + TInt error = iDeviceDialog->Show(KPluginIdentifier, *iVariantMap, this); + if (error != KErrNone) { + User::Leave(error); // error can be positive or negative + } iVisible = ETrue; } @@ -235,9 +237,11 @@ CleanupStack::PopAndDestroy(); // actionData } - User::LeaveIfError(iDeviceDialog->Update(*map)); - delete map; - map = 0; + TInt error = iDeviceDialog->Update(*map); + delete map; map = 0; + if (error != KErrNone) { + User::Leave(error); // error can be positive or negative + } } void CHbDeviceProgressDialogSymbianPrivate::DataReceived(CHbSymbianVariantMap& aData)