diff -r 0b192a3a05a4 -r 6a29d5ad0713 bluetoothengine/btui/Ecom/src/BTUIBlockedDevicesView.cpp --- a/bluetoothengine/btui/Ecom/src/BTUIBlockedDevicesView.cpp Tue Feb 02 00:20:42 2010 +0200 +++ b/bluetoothengine/btui/Ecom/src/BTUIBlockedDevicesView.cpp Fri Feb 19 22:59:18 2010 +0200 @@ -36,7 +36,9 @@ #include #include // Tab icon for General Setting +#include #include "BTUIMainView.h" // base View. + // --------------------------------------------------------- // CBTUIBlockedDevicesView::ConstructL // Symbian 2nd phase constructor can leave. @@ -177,12 +179,16 @@ TBTDevice device; device.iIndex = bItemIndex; iModel->GetDevice(device); - + + RBuf s; + CleanupClosePushL( s ); + BluetoothUiUtil::LoadResourceAndSubstringL( + s, R_BT_WARN_ERASE_BLOCKED, device.iName, 0); + CAknQueryDialog* dialog = CAknQueryDialog::NewL(CAknQueryDialog::EConfirmationTone); - HBufC* s = StringLoader::LoadLC(R_BT_WARN_ERASE_BLOCKED,device.iName); - TInt keypress = dialog->ExecuteLD(R_BT_GENERIC_QUERY, *s); + TInt keypress = dialog->ExecuteLD(R_BT_GENERIC_QUERY, s); - CleanupStack::PopAndDestroy(s); + CleanupStack::PopAndDestroy(&s); if(keypress) // User has accepted the dialog {