equal
deleted
inserted
replaced
56 |
56 |
57 |
57 |
58 |
58 |
59 void CntServiceContactFetchView::closeFetchView() |
59 void CntServiceContactFetchView::closeFetchView() |
60 { |
60 { |
61 QContactManager* mgr = mMgr->contactManager(SYMBIAN_BACKEND); |
|
62 QModelIndexList temp = mListView->selectionModel()->selection().indexes(); |
61 QModelIndexList temp = mListView->selectionModel()->selection().indexes(); |
63 mIndex = 0; |
62 mIndex = 0; |
64 for(int i = 0; i < temp.count(); i++ ) |
63 for(int i = 0; i < temp.count(); i++ ) |
65 { |
64 { |
66 QContact contact = mListModel->contact(temp.at(i)); |
65 QContact contact = mListModel->contact(temp.at(i)); |
304 |
303 |
305 if (aContact.preferredDetail(aAction).isEmpty() && (aAction == "call" || aAction == "message" || aAction == "email")) |
304 if (aContact.preferredDetail(aAction).isEmpty() && (aAction == "call" || aAction == "message" || aAction == "email")) |
306 { |
305 { |
307 aContact.setPreferredDetail(aAction, contactDetail); |
306 aContact.setPreferredDetail(aAction, contactDetail); |
308 //return value will be ignored because we cannot do anything if it fails. |
307 //return value will be ignored because we cannot do anything if it fails. |
309 mMgr->contactManager(SYMBIAN_BACKEND)->saveContact(&aContact); |
308 mEngine->contactManager(SYMBIAN_BACKEND).saveContact(&aContact); |
310 } |
309 } |
311 |
310 |
312 showPreviousView(); |
311 showPreviousView(); |
313 } |
312 } |
314 |
313 |