- Updated alpha version

This commit is contained in:
Christophe Dumez
2007-04-12 20:36:27 +00:00
parent 9885169baf
commit ec3f878372
2 changed files with 3 additions and 2 deletions

View File

@@ -57,11 +57,12 @@ class BandwidthAllocationDialog : public QDialog, private Ui_bandwidth_dlg {
if(!nbTorrents) close();
int val;
if(nbTorrents == 1){
torrent_handle h = handles[0];
torrent_handle h = handles.at(0);
if(uploadMode)
val = h.upload_limit();
else
val = h.download_limit();
qDebug("Bandwidth limit: %d", val);
if(val > bandwidthSlider->maximum() || val < bandwidthSlider->minimum())
val = -1;
bandwidthSlider->setValue(val);