Ignore:
Timestamp:
May 3, 2009, 5:37:39 PM (13 years ago)
Author:
charles
Message:

(trunk qt) Remember between runs whether we were running a local or remote session. Add a gui dialog for switching sessions during runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/torrent-model.cc

    r8188 r8323  
    2020#include "torrent-model.h"
    2121
     22void
     23TorrentModel :: clear( )
     24{
     25    myIdToRow.clear( );
     26    myIdToTorrent.clear( );
     27    foreach( Torrent * tor, myTorrents ) delete tor;
     28    myTorrents.clear( );
     29    reset( );
     30}
     31
    2232int
    2333TorrentModel :: rowCount( const QModelIndex& parent ) const
     
    7989TorrentModel :: ~TorrentModel( )
    8090{
    81     foreach( Torrent * tor, myTorrents )
    82         delete tor;
    83     myTorrents.clear( );
     91    clear( );
    8492}
    8593
Note: See TracChangeset for help on using the changeset viewer.