Changeset 10579


Ignore:
Timestamp:
May 1, 2010, 4:23:18 AM (11 years ago)
Author:
charles
Message:

(1.9x qt) backport r10486 for #2962 "Qt client crashes when removing more than 1 client"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/qt/torrent-model.cc

    r9868 r10579  
    207207
    208208        beginRemoveRows( QModelIndex(), row, row );
     209        // make the myIdToRow map consistent with list view/model
     210        for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i )
     211            if( i.value() > row )
     212                --i.value();
    209213        myIdToRow.remove( id );
    210214        myIdToTorrent.remove( id );
Note: See TracChangeset for help on using the changeset viewer.