From 609f2c8a89e51b37f743c47b3cfe7fa5cab4a5c9 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 28 Jul 2007 00:41:35 +0000 Subject: [PATCH] last commit wasn't exiting gracefully. --- wx/xmission.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wx/xmission.cc b/wx/xmission.cc index fd561e4b9..7c772ef91 100755 --- a/wx/xmission.cc +++ b/wx/xmission.cc @@ -176,7 +176,7 @@ private: TorrentListCtrl * myTorrentList; TorrentStats * myTorrentStats; wxListCtrl * myFilters; - wxTaskBarIcon myTrayIcon; + wxTaskBarIcon * myTrayIcon; wxIcon myLogoIcon; wxIcon myTrayIconIcon; SpeedStats * mySpeedStats; @@ -448,8 +448,9 @@ void MyFrame :: OnPulse(wxTimerEvent& WXUNUSED(event) ) { if( myExitTime ) { - std::cerr << __FILE__ << ':' << __LINE__ << ' ' << tr_torrentCount(handle) << " torrents left" << std::endl; if ( !tr_torrentCount(handle) || myExitTimeSetIcon( myTrayIconIcon, xstr ); myTorrentList->Refresh ( ); } @@ -495,6 +496,7 @@ MyFrame :: MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size myFilter( TorrentFilter::SHOW_ALL ), myExitTime( 0 ) { + myTrayIcon = new wxTaskBarIcon; SetIcon( myLogoIcon ); long port;