phonebookui/cnthistorymodel/src/cnthistorymodel.cpp
changeset 37 fd64c38c277d
parent 31 2a11b5b00470
child 40 b46a585f6909
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
   414     
   414     
   415     for ( int i = first; i <= last; ++i ) {
   415     for ( int i = first; i <= last; ++i ) {
   416         HItemPointer item = d->m_logsMap.value( i );
   416         HItemPointer item = d->m_logsMap.value( i );
   417         int index = d->m_List.indexOf( item );
   417         int index = d->m_List.indexOf( item );
   418         if ( index > -1 ) {
   418         if ( index > -1 ) {
   419             d->m_List.removeAt( index );
       
   420             d->m_logsMap.remove( i );        
   419             d->m_logsMap.remove( i );        
   421             indices.append( index );
   420             indices.append( index );
   422         }
   421         }
       
   422     }
       
   423     
       
   424     foreach(int i, indices) {
       
   425         d->m_List.removeAt( i );
   423     }
   426     }
   424     
   427     
   425     // Remove list items in batches
   428     // Remove list items in batches
   426     if ( !indices.isEmpty() ) {
   429     if ( !indices.isEmpty() ) {
   427         QList< QList<int> > batches = findIndices(indices);
   430         QList< QList<int> > batches = findIndices(indices);