mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 05:27:15 +03:00
- some more signal / slot fixing
This commit is contained in:
parent
d57062a45a
commit
41c6a847b9
3 changed files with 2 additions and 3 deletions
|
@ -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"));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue