Changeset 2524


Ignore:
Timestamp:
Jul 28, 2007, 12:41:35 AM (14 years ago)
Author:
charles
Message:

last commit wasn't exiting gracefully.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wx/xmission.cc

    r2523 r2524  
    177177    TorrentStats * myTorrentStats;
    178178    wxListCtrl * myFilters;
    179     wxTaskBarIcon myTrayIcon;
     179    wxTaskBarIcon * myTrayIcon;
    180180    wxIcon myLogoIcon;
    181181    wxIcon myTrayIconIcon;
     
    449449{
    450450    if( myExitTime ) {
    451         std::cerr << __FILE__ << ':' << __LINE__ << ' ' << tr_torrentCount(handle) << " torrents left" << std::endl;
    452451        if ( !tr_torrentCount(handle) ||  myExitTime<time(0) ) {
     452            delete myTrayIcon;
     453            myTrayIcon = 0;
    453454            Destroy( );
    454455            return;
     
    474475    xstr +=_("Upload: ");
    475476    xstr +=  getReadableSpeed( up );
    476     myTrayIcon.SetIcon( myTrayIconIcon, xstr );
     477    myTrayIcon->SetIcon( myTrayIconIcon, xstr );
    477478
    478479    myTorrentList->Refresh ( );
     
    496497    myExitTime( 0 )
    497498{
     499    myTrayIcon = new wxTaskBarIcon;
    498500    SetIcon( myLogoIcon );
    499501
Note: See TracChangeset for help on using the changeset viewer.