Browse Source

- Fixed possible issue in tracker addition

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
be934837e5
  1. 2
      src/properties_imp.cpp

2
src/properties_imp.cpp

@ -494,7 +494,7 @@ void properties::addTrackerList(QStringList myTrackers) {
// Add the trackers to the list // Add the trackers to the list
std::vector<announce_entry> trackers = h.trackers(); std::vector<announce_entry> trackers = h.trackers();
foreach(QString tracker, myTrackers) { foreach(QString tracker, myTrackers) {
announce_entry new_tracker(misc::toString(tracker.toUtf8().data())); announce_entry new_tracker(misc::toString(tracker.trimmed().toUtf8().data()));
new_tracker.tier = 0; // Will be fixed a bit later new_tracker.tier = 0; // Will be fixed a bit later
trackers.push_back(new_tracker); trackers.push_back(new_tracker);
misc::fixTrackersTiers(trackers); misc::fixTrackersTiers(trackers);

Loading…
Cancel
Save