diff --git a/src/FinishedTorrents.cpp b/src/FinishedTorrents.cpp index cc7642e5f..b11fdde3b 100644 --- a/src/FinishedTorrents.cpp +++ b/src/FinishedTorrents.cpp @@ -37,7 +37,6 @@ FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession) : par setupUi(this); actionStart->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/play.png"))); actionPause->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/pause.png"))); - connect(BTSession, SIGNAL(addedTorrent(QTorrentHandle&)), this, SLOT(torrentAdded(QTorrentHandle&))); finishedListModel = new QStandardItemModel(0,6); finishedListModel->setHeaderData(F_NAME, Qt::Horizontal, tr("Name", "i.e: file name")); finishedListModel->setHeaderData(F_SIZE, Qt::Horizontal, tr("Size", "i.e: file size")); diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index d92168c4f..9a18904d4 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1258,7 +1258,7 @@ void bittorrent::readAlerts() { if(h.is_valid()){ QString hash = h.hash(); qDebug("%s have just finished checking", hash.toUtf8().data()); - emit torrentFinishedChecking(hash); + emit torrentFinishedChecking(h); } } a = s->pop_alert(); diff --git a/src/bittorrent.h b/src/bittorrent.h index 8218ea82f..871fb36fa 100644 --- a/src/bittorrent.h +++ b/src/bittorrent.h @@ -176,7 +176,7 @@ class bittorrent : public QObject { void newDownloadedTorrent(QString path, QString url); void updateFileSize(QString hash); void downloadFromUrlFailure(QString url, QString reason); - void torrentFinishedChecking(QString hash); + void torrentFinishedChecking(QTorrentHandle& h); void forceUnfinishedListUpdate(); void forceFinishedListUpdate(); };