Try to fix patch.
[overlay.git] / net-p2p / amule / files / amule-2.2.6-remove-download-limit.patch
index a9a3bed..b2f6db4 100644 (file)
@@ -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 );
+-                      }
+-              }
+-      }
+ }