- Kept on working on bandwidth allocation per torrent

- Fixed a crash in search engine when systray integration was disabled
This commit is contained in:
Christophe Dumez
2007-04-10 09:31:25 +00:00
parent 3933d78da2
commit 30aa59f582
7 changed files with 35 additions and 24 deletions

View File

@@ -58,6 +58,7 @@ class BandwidthAllocationDialog : public QDialog, private Ui_bandwidth_dlg {
// val = -1;
// bandwidthSlider->setValue(val);
// }
connect(buttonBox, SIGNAL(accepted()), this, SLOT(setBandwidth()));
}
~BandwidthAllocationDialog(){
@@ -75,6 +76,15 @@ class BandwidthAllocationDialog : public QDialog, private Ui_bandwidth_dlg {
}
}
void setBandwidth(){
int val = bandwidthSlider->value();
if(uploadMode)
h.set_upload_limit(val);
else
h.set_download_limit(val);
close();
}
private:
bool uploadMode;
bittorrent *BTSession;