|
|
@ -43,7 +43,7 @@ |
|
|
|
#include "guiiconprovider.h" |
|
|
|
#include "guiiconprovider.h" |
|
|
|
#include "ui_trackersadditiondlg.h" |
|
|
|
#include "ui_trackersadditiondlg.h" |
|
|
|
|
|
|
|
|
|
|
|
TrackersAdditionDlg::TrackersAdditionDlg(BitTorrent::TorrentHandle *const torrent, QWidget *parent) |
|
|
|
TrackersAdditionDlg::TrackersAdditionDlg(QWidget *parent, BitTorrent::TorrentHandle *const torrent) |
|
|
|
: QDialog(parent) |
|
|
|
: QDialog(parent) |
|
|
|
, m_ui(new Ui::TrackersAdditionDlg()) |
|
|
|
, m_ui(new Ui::TrackersAdditionDlg()) |
|
|
|
, m_torrent(torrent) |
|
|
|
, m_torrent(torrent) |
|
|
@ -132,10 +132,10 @@ void TrackersAdditionDlg::getTrackerError(const QString &, const QString &error) |
|
|
|
QMessageBox::warning(this, tr("Download error"), tr("The trackers list could not be downloaded, reason: %1").arg(error), QMessageBox::Ok); |
|
|
|
QMessageBox::warning(this, tr("Download error"), tr("The trackers list could not be downloaded, reason: %1").arg(error), QMessageBox::Ok); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QStringList TrackersAdditionDlg::askForTrackers(BitTorrent::TorrentHandle *const torrent) |
|
|
|
QStringList TrackersAdditionDlg::askForTrackers(QWidget *parent, BitTorrent::TorrentHandle *const torrent) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QStringList trackers; |
|
|
|
QStringList trackers; |
|
|
|
TrackersAdditionDlg dlg(torrent); |
|
|
|
TrackersAdditionDlg dlg(parent, torrent); |
|
|
|
if (dlg.exec() == QDialog::Accepted) |
|
|
|
if (dlg.exec() == QDialog::Accepted) |
|
|
|
return dlg.newTrackers(); |
|
|
|
return dlg.newTrackers(); |
|
|
|
|
|
|
|
|
|
|
|