syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp
branchRCL_3
changeset 12 9e9792ae22e3
parent 0 b497e44ab2fc
child 24 13d7c31c74e0
--- a/syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp	Fri Mar 12 15:46:48 2010 +0200
+++ b/syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp	Mon Mar 15 12:43:15 2010 +0200
@@ -155,17 +155,17 @@
 //
 TBool CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus)
 	{
- 
- 	if( EPhoneLayout == aQueryControl->QueryType() )
- 	 {
-		if (aEventType == EEmergencyCallAttempted)
+ 	if ( aQueryControl )
+  {
+ 		if( EPhoneLayout == aQueryControl->QueryType() )
+ 	 	{
+			if (aEventType == EEmergencyCallAttempted)
         	{
         	TryExitL(EEikBidCancel);
         	}
     	else
         	{
-        	if ( aQueryControl )
-         	{
+        	
          	TBuf<KSyncMLMaxDefaultResponseMsgLength> PhoneNo;
          	aQueryControl->GetText( PhoneNo );
          	TInt posplus = PhoneNo.LocateReverse('+');
@@ -177,10 +177,9 @@
            	{      
           	MakeLeftSoftkeyVisible(EFalse);
            	}
-         	}
-        
-        	}   
+         	}  
   	 }
+  }
  	else //For all other layouts 
  	 {
  	CAknQueryDialog::HandleQueryEditorStateEventL(aQueryControl,aEventType,aStatus);