mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
BUGFIX: Make sure bandwidth limiting dialogs are centered on screen
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.1.3
|
||||
- BUGFIX: Fix "Append .!qB extension to complete files" (libtorrent v0.15)
|
||||
- BUGFIX: Make sure bandwidth limiting dialogs are centered on screen
|
||||
|
||||
* Sun Jan 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
|
||||
- FEATURE: Added back file prioritizing in a torrent
|
||||
|
||||
@@ -379,22 +379,13 @@ void PropertiesWidget::loadDynamicData() {
|
||||
}
|
||||
|
||||
void PropertiesWidget::loadUrlSeeds(){
|
||||
QStringList already_added;
|
||||
listWebSeeds->clear();
|
||||
QStringList url_seeds = h.url_seeds();
|
||||
foreach(const QString &url_seed, url_seeds){
|
||||
if(!url_seed.isEmpty()) {
|
||||
new QListWidgetItem(url_seed, listWebSeeds);
|
||||
already_added << url_seed;
|
||||
}
|
||||
}
|
||||
// Load the hard-coded url seeds
|
||||
qDebug("Loading URL seeds");
|
||||
QStringList hc_seeds = h.url_seeds();
|
||||
// Add hard coded url seeds
|
||||
// Add url seeds
|
||||
foreach(const QString &hc_seed, hc_seeds){
|
||||
if(!already_added.contains(hc_seed)){
|
||||
new QListWidgetItem(hc_seed, listWebSeeds);
|
||||
}
|
||||
qDebug("Loading URL seed: %s", hc_seed.toLocal8Bit().data());
|
||||
new QListWidgetItem(hc_seed, listWebSeeds);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ class SpeedLimitDialog : public QDialog, private Ui_bandwidth_dlg {
|
||||
// Connect to slots
|
||||
connect(bandwidthSlider, SIGNAL(valueChanged(int)), this, SLOT(updateSpinValue(int)));
|
||||
connect(spinBandwidth, SIGNAL(valueChanged(int)), this, SLOT(updateSliderValue(int)));
|
||||
move(misc::screenCenter(this));
|
||||
}
|
||||
|
||||
~SpeedLimitDialog(){
|
||||
|
||||
Reference in New Issue
Block a user