|
|
@ -379,24 +379,15 @@ void PropertiesWidget::loadDynamicData() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void PropertiesWidget::loadUrlSeeds(){ |
|
|
|
void PropertiesWidget::loadUrlSeeds(){ |
|
|
|
QStringList already_added; |
|
|
|
|
|
|
|
listWebSeeds->clear(); |
|
|
|
listWebSeeds->clear(); |
|
|
|
QStringList url_seeds = h.url_seeds(); |
|
|
|
qDebug("Loading 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
|
|
|
|
|
|
|
|
QStringList hc_seeds = h.url_seeds(); |
|
|
|
QStringList hc_seeds = h.url_seeds(); |
|
|
|
// Add hard coded url seeds
|
|
|
|
// Add url seeds
|
|
|
|
foreach(const QString &hc_seed, hc_seeds){ |
|
|
|
foreach(const QString &hc_seed, hc_seeds){ |
|
|
|
if(!already_added.contains(hc_seed)){ |
|
|
|
qDebug("Loading URL seed: %s", hc_seed.toLocal8Bit().data()); |
|
|
|
new QListWidgetItem(hc_seed, listWebSeeds); |
|
|
|
new QListWidgetItem(hc_seed, listWebSeeds); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Tab buttons */ |
|
|
|
/* Tab buttons */ |
|
|
|
QPushButton* PropertiesWidget::getButtonFromIndex(int index) { |
|
|
|
QPushButton* PropertiesWidget::getButtonFromIndex(int index) { |
|
|
|