javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdateeditor.cpp
branchRCL_3
changeset 21 4376525cdefb
parent 19 71c436fe3ce0
child 24 6c158198356e
equal deleted inserted replaced
19:71c436fe3ce0 21:4376525cdefb
   220 // ---------------------------------------------------------------------------------------------
   220 // ---------------------------------------------------------------------------------------------
   221 //
   221 //
   222 void CSwtDateEditor::MakeVisible(TBool aVisible)
   222 void CSwtDateEditor::MakeVisible(TBool aVisible)
   223 {
   223 {
   224     // Close VKB. Do it here instead of FocusChange to avoid split input flicker.
   224     // Close VKB. Do it here instead of FocusChange to avoid split input flicker.
   225     if (iEditor->IsFocused() && !aVisible)
   225     if (iEditor && iEditor->IsFocused() && !aVisible)
   226     {
   226     {
   227         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
   227         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
   228         if (fep)
   228         if (fep)
   229         {
   229         {
   230             fep->HandleDestructionOfFocusedItem();
   230             fep->HandleDestructionOfFocusedItem();
   539 void CSwtDateEditor::SetDimmed(TBool aDimmed)
   539 void CSwtDateEditor::SetDimmed(TBool aDimmed)
   540 {
   540 {
   541     ASSERT(iEditor);
   541     ASSERT(iEditor);
   542 
   542 
   543     // Close VKB. Do it here instead of FocusChange to avoid split input flicker.
   543     // Close VKB. Do it here instead of FocusChange to avoid split input flicker.
   544     if (iEditor->IsFocused() && aDimmed)
   544     if (iEditor && iEditor->IsFocused() && aDimmed)
   545     {
   545     {
   546         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
   546         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
   547         if (fep)
   547         if (fep)
   548         {
   548         {
   549             fep->HandleDestructionOfFocusedItem();
   549             fep->HandleDestructionOfFocusedItem();
  1175 }
  1175 }
  1176 
  1176 
  1177 TSwtPeer CSwtDateEditor::Dispose()
  1177 TSwtPeer CSwtDateEditor::Dispose()
  1178 {
  1178 {
  1179     // Close VKB.
  1179     // Close VKB.
  1180     if (iEditor->IsFocused())
  1180     if (iEditor && iEditor->IsFocused())
  1181     {
  1181     {
  1182         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
  1182         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
  1183         if (fep)
  1183         if (fep)
  1184         {
  1184         {
  1185             fep->HandleDestructionOfFocusedItem();
  1185             fep->HandleDestructionOfFocusedItem();