download column wasn't sorting correctly.

This commit is contained in:
Charles Kerr 2007-07-28 00:27:30 +00:00
parent 05d2c72e60
commit 9b4545fdea
3 changed files with 8 additions and 4 deletions

4
wx/TODO.txt Normal file
View File

@ -0,0 +1,4 @@
peers column is awkward to read
peers column doesn't sort
pulse doesn't resort items in the torrent list
resorting the torrent list causes a 'blink', which makes pulsing resort unpleasant

View File

@ -396,7 +396,7 @@ TorrentListCtrl :: Compare( long item1, long item2, long sortData )
ret = 0;
break;
case COL_DOWNLOAD_SPEED: break;
case COL_DOWNLOAD_SPEED:
if( sa->rateDownload < sb->rateDownload )
ret = -1;
else if( sa->rateDownload > sb->rateDownload )

View File

@ -379,16 +379,16 @@ bool MyApp::OnInit()
if( cmdParser.Parse ( ) )
return false;
const wxString name = wxString::Format( _T("MyApp-%s"), wxGetUserId().c_str());
const wxString name = wxString::Format( _T("Xmission-%s"), wxGetUserId().c_str());
myChecker = new wxSingleInstanceChecker( name );
if ( myChecker->IsAnotherRunning() ) {
wxLogError(_("An instance of Transmission is already running."));
wxLogError(_("An instance of Xmission is already running."));
return false;
}
const bool paused = cmdParser.Found( _("p") );
MyFrame * frame = new MyFrame( _T("Xmission"),
MyFrame * frame = new MyFrame( _("Xmission"),
wxPoint(50,50),
wxSize(900,600),
paused);