Changeset 10773


Ignore:
Timestamp:
Jun 16, 2010, 3:04:40 AM (12 years ago)
Author:
Longinus00
Message:

(web) #3296: Deleting a torrent hidden in the webui corrupts the row model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.js

    r10536 r10773  
    15671567                                if( e ) {
    15681568                                        var row_index = tr.getTorrentIndex(tr._rows, torrent);
     1569                                        //if torrent is not currently visible then delete a hidden row
     1570                                        //otherwise the row model gets corrupted because no row gets deleted
     1571                                        if( row_index == null ) row_index = tr._rows.length - 1;
    15691572                                        delete e._torrent; //remove circular refernce to help IE garbage collect
    15701573                                        tr._rows.splice(row_index, 1)
Note: See TracChangeset for help on using the changeset viewer.