phonebookui/pbkcommonui/src/cntphonenumbermodel.cpp
changeset 47 7cbcb2896f0e
parent 46 efe85016a067
equal deleted inserted replaced
46:efe85016a067 47:7cbcb2896f0e
    82                 mContact->saveDetail( &detail );
    82                 mContact->saveDetail( &detail );
    83             }
    83             }
    84             
    84             
    85             if ( detail.value(QContactPhoneNumber::FieldNumber).isEmpty() )
    85             if ( detail.value(QContactPhoneNumber::FieldNumber).isEmpty() )
    86             {
    86             {
    87                 // this won't change the pointer value if the detail does not exists in contact.
       
    88                 // But, this is the situation in wk20...
       
    89                 mContact->removeDetail( &detail );
    87                 mContact->removeDetail( &detail );
    90             }
    88             }
    91         }
    89         }
    92         
    90         
    93         if ( detail.definitionName() == QContactOnlineAccount::DefinitionName )
    91         if ( detail.definitionName() == QContactOnlineAccount::DefinitionName )