diff -r 9c3798b88e30 -r b78e66e88238 bluetoothengine/btui/Ecom/src/BTUIDeviceContainer.cpp --- a/bluetoothengine/btui/Ecom/src/BTUIDeviceContainer.cpp Sat Apr 24 00:12:05 2010 +0300 +++ b/bluetoothengine/btui/Ecom/src/BTUIDeviceContainer.cpp Sat Apr 24 00:30:17 2010 +0300 @@ -76,17 +76,7 @@ iDeviceList->SetListBoxObserver( this ); // Set the empty text at basis of the list - HBufC* devEmptyText = NULL ; - if(iGroup ==EGroupPaired) - { - devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_PAIRED_DEVICES); - } - else - { - devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_BLOCKED_DEVICES); - } - iDeviceList->View()->SetListEmptyTextL(*devEmptyText ); - CleanupStack::PopAndDestroy(devEmptyText); + iDeviceList->View()->SetListEmptyTextL( KNullDesC ); // Set up filenames for Btui and Avkon bitmaps TFileName bmpFilename; @@ -291,7 +281,21 @@ if(deviceCount >0 ) iDeviceList->SetCurrentItemIndex( Max(selectedItem,0 )) ; - + else + { + HBufC* devEmptyText = NULL; + if(iGroup ==EGroupPaired) + { + devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_PAIRED_DEVICES); + } + else + { + devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_BLOCKED_DEVICES); + } + iDeviceList->View()->SetListEmptyTextL(*devEmptyText ); + CleanupStack::PopAndDestroy(devEmptyText); + } + if(addition | removal | previouslySelected!=selectedItem) iDeviceList->DrawDeferred(); TRACE_FUNC_EXIT