Merge pull request #2 from qbittorrent/master

Up-to-date commit
This commit is contained in:
Dmitriy Falko
2013-01-28 06:08:05 -08:00
147 changed files with 9455 additions and 8308 deletions

View File

@@ -316,8 +316,10 @@ void PeerListWidget::loadPeers(const QTorrentHandle &h, bool force_hostname_reso
std::vector<peer_info>::const_iterator itrend = peers.end();
for ( ; itr != itrend; ++itr) {
peer_info peer = *itr;
QString peer_ip = misc::toQString(peer.ip.address().to_string(ec));
if (ec) continue;
std::string ip_str = peer.ip.address().to_string(ec);
if (ec || ip_str.empty())
continue;
QString peer_ip = misc::toQString(ip_str);
if (m_peerItems.contains(peer_ip)) {
// Update existing peer
updatePeer(peer_ip, peer);

View File

@@ -354,8 +354,6 @@ void TrackerList::showTrackerListMenu(QPoint) {
if (!getSelectedTrackerItems().isEmpty()) {
delAct = menu.addAction(IconProvider::instance()->getIcon("list-remove"), tr("Remove tracker"));
}
menu.addSeparator();
QAction *reannounceAct = menu.addAction(IconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce"));
QAction *act = menu.exec(QCursor::pos());
if (act == 0) return;
if (act == addAct) {
@@ -370,10 +368,6 @@ void TrackerList::showTrackerListMenu(QPoint) {
deleteSelectedTrackers();
return;
}
if (act == reannounceAct) {
properties->getCurrentTorrent().force_reannounce();
return;
}
}
void TrackerList::loadSettings() {

View File

@@ -53,9 +53,6 @@ public:
setupUi(this);
// Icons
uTorrentListButton->setIcon(IconProvider::instance()->getIcon("download"));
// As a default, use torrentz.com link
list_url->setText("http://www.torrentz.com/announce_"+h.hash());
list_url->setCursorPosition(0);
}
~TrackersAdditionDlg() {}