phoneapp/phoneuicontrol/src/cphonebtaadisconnecthandler.cpp
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
--- a/phoneapp/phoneuicontrol/src/cphonebtaadisconnecthandler.cpp	Tue Aug 31 15:14:29 2010 +0300
+++ b/phoneapp/phoneuicontrol/src/cphonebtaadisconnecthandler.cpp	Wed Sep 01 12:30:10 2010 +0100
@@ -97,11 +97,12 @@
     {
     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneBtaaDisconnectHandler::Cancel()");
     TRAP_IGNORE( iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveQuery ) );
-    DeleteAll();
-    if ( !iOldMuted && iStateMachine->PhoneEngineInfo()->AudioMute() )
+    if ( !iOldMuted && iStateMachine->PhoneEngineInfo()->AudioMute() &&
+    	ELaunchQuery == iState )
         {
         TRAP_IGNORE ( SetMuteL( EFalse ) );
         }
+	DeleteAll();
     iOldMuted = EFalse;
     }
 
@@ -283,7 +284,7 @@
 void CPhoneBtaaDisconnectHandler::ShowQueryL( TInt aResourceId )
     {
     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneBtaaDisconnectHandler::ShowQueryL( ) ");
-    //__ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) );
+	//__ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) );
     TPhoneCmdParamQuery queryParam;
     queryParam.SetQueryType( EPhoneGlobalQueryDialog );