mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-04 19:04:30 +00:00
- Properly report paused torrents from Bittorrent session to GUI (closes #86293)
- Removed some verbose debug
This commit is contained in:
parent
70c62f6294
commit
62f57862e5
@ -1466,7 +1466,7 @@ void Bittorrent::readAlerts() {
|
|||||||
if(h.is_paused()) {
|
if(h.is_paused()) {
|
||||||
// XXX: Unfortunately libtorrent-rasterbar does not send a torrent_paused_alert
|
// XXX: Unfortunately libtorrent-rasterbar does not send a torrent_paused_alert
|
||||||
// and the torrent can be paused when metadata is received
|
// and the torrent can be paused when metadata is received
|
||||||
emit torrentPaused(h);
|
emit pausedTorrent(h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1478,7 +1478,7 @@ void Bittorrent::readAlerts() {
|
|||||||
if(h.is_valid()) {
|
if(h.is_valid()) {
|
||||||
emit fullDiskError(h, misc::toQString(p->message()));
|
emit fullDiskError(h, misc::toQString(p->message()));
|
||||||
h.pause();
|
h.pause();
|
||||||
emit torrentPaused(h);
|
emit pausedTorrent(h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,6 @@ signals:
|
|||||||
void downloadFromUrlFailure(QString url, QString reason);
|
void downloadFromUrlFailure(QString url, QString reason);
|
||||||
void torrentFinishedChecking(QTorrentHandle& h);
|
void torrentFinishedChecking(QTorrentHandle& h);
|
||||||
void metadataReceived(QTorrentHandle &h);
|
void metadataReceived(QTorrentHandle &h);
|
||||||
void torrentPaused(QTorrentHandle &h);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -287,7 +287,6 @@ void PropertiesWidget::reloadPreferences() {
|
|||||||
void PropertiesWidget::loadDynamicData() {
|
void PropertiesWidget::loadDynamicData() {
|
||||||
// Refresh only if the torrent handle is valid and if visible
|
// Refresh only if the torrent handle is valid and if visible
|
||||||
if(!h.is_valid() || main_window->getCurrentTabIndex() != TAB_TRANSFER || state != VISIBLE) return;
|
if(!h.is_valid() || main_window->getCurrentTabIndex() != TAB_TRANSFER || state != VISIBLE) return;
|
||||||
qDebug("Refreshing torrent properties");
|
|
||||||
try {
|
try {
|
||||||
// Transfer infos
|
// Transfer infos
|
||||||
if(stackedProperties->currentIndex() == MAIN_TAB) {
|
if(stackedProperties->currentIndex() == MAIN_TAB) {
|
||||||
|
@ -389,7 +389,6 @@ void TransferListWidget::setRefreshInterval(int t) {
|
|||||||
void TransferListWidget::refreshList() {
|
void TransferListWidget::refreshList() {
|
||||||
// Refresh only if displayed
|
// Refresh only if displayed
|
||||||
if(main_window->getCurrentTabIndex() != TAB_TRANSFER) return;
|
if(main_window->getCurrentTabIndex() != TAB_TRANSFER) return;
|
||||||
qDebug("Refreshing transfer list");
|
|
||||||
unsigned int nb_downloading = 0, nb_seeding=0, nb_active=0, nb_inactive = 0;
|
unsigned int nb_downloading = 0, nb_seeding=0, nb_active=0, nb_inactive = 0;
|
||||||
for(int i=0; i<listModel->rowCount(); ++i) {
|
for(int i=0; i<listModel->rowCount(); ++i) {
|
||||||
int s = updateTorrent(i);
|
int s = updateTorrent(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user