715 |
715 |
716 // -------------------------------------------------------------------------- |
716 // -------------------------------------------------------------------------- |
717 // CPbk2FetchDlg::FetchDlgPageChangedL |
717 // CPbk2FetchDlg::FetchDlgPageChangedL |
718 // -------------------------------------------------------------------------- |
718 // -------------------------------------------------------------------------- |
719 // |
719 // |
720 void CPbk2FetchDlg::FetchDlgPageChangedL( MPbk2FetchDlgPage& /*aPage*/ ) |
720 void CPbk2FetchDlg::FetchDlgPageChangedL( MPbk2FetchDlgPage& aPage ) |
721 { |
721 { |
722 // An view event burst from VPbk results this function being called |
|
723 // several times a row. It is not meaningful to restore selections |
|
724 // every time, but instead wait for a while and restore the selections |
|
725 // after all events have been received. Hence the idle object is used. |
|
726 delete iSelectionRestorer; |
722 delete iSelectionRestorer; |
727 iSelectionRestorer = NULL; |
723 iSelectionRestorer = NULL; |
728 iSelectionRestorer = CIdle::NewL( CActive::EPriorityIdle ); |
724 |
729 iSelectionRestorer->Start( TCallBack( RestoreSelections, this )); |
725 if ( aPage.DlgPageReady() ) |
|
726 { |
|
727 // An view event burst from VPbk results this function being called |
|
728 // several times a row. It is not meaningful to restore selections |
|
729 // every time, but inste ad wait for a while and restore the selections |
|
730 // after all events have been received. Hence the idle object is used. |
|
731 iSelectionRestorer = CIdle::NewL( CActive::EPriorityIdle ); |
|
732 iSelectionRestorer->Start( TCallBack( RestoreSelections, this )); |
|
733 } |
730 } |
734 } |
731 |
735 |
732 // -------------------------------------------------------------------------- |
736 // -------------------------------------------------------------------------- |
733 // CPbk2FetchDlg::FetchDlgObserver |
737 // CPbk2FetchDlg::FetchDlgObserver |
734 // -------------------------------------------------------------------------- |
738 // -------------------------------------------------------------------------- |