equal
deleted
inserted
replaced
28 #include <MPbk2ApplicationServices.h> |
28 #include <MPbk2ApplicationServices.h> |
29 #include <MPbk2ContactViewSupplier.h> |
29 #include <MPbk2ContactViewSupplier.h> |
30 #include <Pbk2UIControls.hrh> |
30 #include <Pbk2UIControls.hrh> |
31 #include <MPbk2ContactUiControl.h> |
31 #include <MPbk2ContactUiControl.h> |
32 #include <MPbk2FetchDlgObserver.h> |
32 #include <MPbk2FetchDlgObserver.h> |
33 #include <Pbk2UIControls.rsg> |
33 #include <pbk2uicontrols.rsg> |
34 #include <MPbk2ContactLinkIterator.h> |
34 #include <MPbk2ContactLinkIterator.h> |
35 #include <CPbk2IconInfoContainer.h> |
35 #include <CPbk2IconInfoContainer.h> |
36 #include <Pbk2UID.h> |
36 #include <Pbk2UID.h> |
37 #include <CPbk2IconFactory.h> |
37 #include <CPbk2IconFactory.h> |
38 #include <TPbk2IconId.h> |
38 #include <TPbk2IconId.h> |
1325 // CPbk2FetchDlg::RestoreSelectionsL |
1325 // CPbk2FetchDlg::RestoreSelectionsL |
1326 // -------------------------------------------------------------------------- |
1326 // -------------------------------------------------------------------------- |
1327 // |
1327 // |
1328 void CPbk2FetchDlg::RestoreSelectionsL() |
1328 void CPbk2FetchDlg::RestoreSelectionsL() |
1329 { |
1329 { |
|
1330 // Remove selections in all pages. Selections will be restored later. |
|
1331 // In case of sort order change the selections will be in a new position, |
|
1332 // that's why they need to be removed. |
|
1333 if ( iPages ) |
|
1334 { |
|
1335 const TInt pageCount = iPages->DlgPageCount(); |
|
1336 for ( TInt i = 0; i < pageCount; i++ ) |
|
1337 { |
|
1338 if ( iPages->DlgPageAt(i).Control().ContactsMarked() ) |
|
1339 { |
|
1340 iPages->DlgPageAt(i).Control().ClearMarks(); |
|
1341 } |
|
1342 } |
|
1343 } |
|
1344 |
1330 if ( iResults ) |
1345 if ( iResults ) |
1331 { |
1346 { |
1332 for ( TInt i = 0; i < iResults->Count(); ++i ) |
1347 for ( TInt i = 0; i < iResults->Count(); ++i ) |
1333 { |
1348 { |
1334 iPages->SelectContactL( iResults->At( i ), ETrue ); |
1349 iPages->SelectContactL( iResults->At( i ), ETrue ); |