uifw/AvKon/src/AknQueryDialog.cpp
branchRCL_3
changeset 18 fcdfafb36fe7
parent 12 941195f2d488
child 19 aecbbf00d063
equal deleted inserted replaced
17:a1caeb42b3a3 18:fcdfafb36fe7
   426         soundSystem = iSoundSystem;
   426         soundSystem = iSoundSystem;
   427         }
   427         }
   428 
   428 
   429     CAknsFrameBackgroundControlContext* cc = (CAknsFrameBackgroundControlContext*)AknsDrawUtils::ControlContext( this );
   429     CAknsFrameBackgroundControlContext* cc = (CAknsFrameBackgroundControlContext*)AknsDrawUtils::ControlContext( this );
   430     cc->SetCenter(KAknsIIDQsnFrPopupCenterQuery);
   430     cc->SetCenter(KAknsIIDQsnFrPopupCenterQuery);
       
   431     
       
   432     // Check Query is wait of not.
       
   433     TBool isWaitDialog( ( DialogFlags() & EEikDialogFlagWait ) != 0 );
   431 
   434 
   432     SetGloballyCapturing(ETrue); 
   435     SetGloballyCapturing(ETrue); 
   433     TInt ret = CAknDialog::RunLD();
   436     TInt ret = CAknDialog::RunLD();
   434     _AKNTRACE( "[%s][%s] ret: %d", "CAknQueryDialog", __FUNCTION__, ret );
   437     _AKNTRACE( "[%s][%s] ret: %d", "CAknQueryDialog", __FUNCTION__, ret );
   435     if (soundSystem)
   438     if (soundSystem)
   436         {
   439         {
   437         soundSystem->PopContext();
   440         soundSystem->PopContext();
   438         }
   441         }
   439     SetGloballyCapturing(EFalse); 
   442     // If wait QueryDialog, instance will be deleted right after RunLD via CBA
       
   443     if ( !isWaitDialog )
       
   444         {
       
   445         SetGloballyCapturing(EFalse); 
       
   446         }
       
   447 
   440     _AKNTRACE_FUNC_EXIT;
   448     _AKNTRACE_FUNC_EXIT;
   441     return ret;
   449     return ret;
   442     }
   450     }
   443 
   451 
   444 /**
   452 /**