diff -r 8930e1d1d530 -r 9c3798b88e30 bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp --- a/bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp Fri Apr 23 23:54:40 2010 +0300 +++ b/bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp Sat Apr 24 00:12:05 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -402,7 +402,11 @@ SetVisibilityModeL( EBTVisibilityModeHidden, 0 ); TBTPowerState power = EBTOff; TInt err = GetHwPowerState( power ); - if( !err && power ) + // See p2.1.2.1.2 of the UI spec + // NB: Please distinguish between TBTPowerState::EBTOff (defined in hcitypes.h) + // and TBTPowerStateValue::EBTPowerOff (defined in btserversdkcrkeys.h) + // because they have the opposite values + if( !err && (power != EBTOff)) { // Show a notification to the user TBTGenericInfoNotiferParamsPckg pckg;