X-Git-Url: https://git.pterodactylus.net/?p=overlay.git;a=blobdiff_plain;f=net-p2p%2Famule%2Ffiles%2Famule-2.2.6-remove-download-limit.patch;h=b2f6db4df986dbaa352effb0540cab33dc142321;hp=a9a3bedf4119729e4ef5364fa42ce0f3ad65747e;hb=8874ca3383090b9f57c0c4a37325a635dc8b1900;hpb=3ea393d06672fa7367c41d85f9af2b9cdf4c301c diff --git a/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch b/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch index a9a3bed..b2f6db4 100644 --- a/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch +++ b/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch @@ -28,3 +28,32 @@ diff -Nur aMule-2.2.6-orig/src/Preferences.cpp aMule-2.2.6/src/Preferences.cpp } +diff -Nur aMule-2.2.6-orig/src/PrefsUnifiedDlg.cpp aMule-2.2.6/src/PrefsUnifiedDlg.cpp +--- aMule-2.2.6-orig/src/PrefsUnifiedDlg.cpp 2009-03-28 20:29:59.000000000 +0100 ++++ aMule-2.2.6/src/PrefsUnifiedDlg.cpp 2010-03-08 18:22:52.000000000 +0100 +@@ -1087,25 +1087,6 @@ + + void PrefsUnifiedDlg::OnRateLimitChanged( wxSpinEvent& event ) + { +- // Here we do immediate sainity checking of the up/down ratio, +- // so that the user can see if his choice is illegal +- +- // We only do checks if the rate is limited +- if ( event.GetPosition() != (int)UNLIMITED ) { +- wxSpinCtrl* dlrate = CastChild( IDC_MAXDOWN, wxSpinCtrl ); +- +- if ( event.GetPosition() < 4 ) { +- if ( ( event.GetPosition() * 3 < dlrate->GetValue() ) || +- ( dlrate->GetValue() == (int)UNLIMITED ) ) { +- dlrate->SetValue( event.GetPosition() * 3 ); +- } +- } else if ( event.GetPosition() < 10 ) { +- if ( ( event.GetPosition() * 4 < dlrate->GetValue() ) || +- ( dlrate->GetValue() == (int)UNLIMITED ) ) { +- dlrate->SetValue( event.GetPosition() * 4 ); +- } +- } +- } + } + +