equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #include "cntmycardview.h" |
18 #include "cntmycardview.h" |
19 #include "cntfetchcontactsview.h" |
19 #include "cntfetchcontactsview.h" |
20 #include "cntglobal.h" |
20 #include "cntglobal.h" |
|
21 #include <qtcontacts.h> |
21 #include <hbpushbutton.h> |
22 #include <hbpushbutton.h> |
22 #include <hbaction.h> |
23 #include <hbaction.h> |
23 #include <hbview.h> |
24 #include <hbview.h> |
24 #include <hbmainwindow.h> |
25 #include <hbmainwindow.h> |
25 |
26 |
156 |
157 |
157 QSet<QContactLocalId> selectedContacts = mFetchView->getSelectedContacts(); |
158 QSet<QContactLocalId> selectedContacts = mFetchView->getSelectedContacts(); |
158 |
159 |
159 if ( !mFetchView->wasCanceled() && !selectedContacts.isEmpty() ) { |
160 if ( !mFetchView->wasCanceled() && !selectedContacts.isEmpty() ) { |
160 QList<QContactLocalId> selectedContactsList = selectedContacts.values(); |
161 QList<QContactLocalId> selectedContactsList = selectedContacts.values(); |
161 manager->setSelfContactId(selectedContactsList.front()); |
162 QContact contact = manager->contact(selectedContactsList.front()); |
162 |
|
163 QContact contact = mViewManager->contactManager(SYMBIAN_BACKEND)->contact(selectedContactsList.front()); |
|
164 removeFromGroup(&contact); |
163 removeFromGroup(&contact); |
165 |
164 |
|
165 manager->setSelfContactId( contact.localId() ); |
166 showPreviousView(); |
166 showPreviousView(); |
167 } |
167 } |
168 } |
168 } |
169 |
169 |
170 void CntMyCardView::removeFromGroup(const QContact* aContact) |
170 void CntMyCardView::removeFromGroup(const QContact* aContact) |