Browse Source

Fix possible transfer list refresh issue

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
3664134e02
  1. 7
      src/transferlistwidget.cpp

7
src/transferlistwidget.cpp

@ -371,7 +371,10 @@ int TransferListWidget::updateTorrent(int row) { @@ -371,7 +371,10 @@ int TransferListWidget::updateTorrent(int row) {
if(!isColumnHidden(TR_DLLIMIT))
listModel->setData(listModel->index(row, TR_DLLIMIT), QVariant((qlonglong)h.download_limit()));
// Queueing code
if(!h.is_seed() && BTSession->isQueueingEnabled()) {
if(BTSession->isQueueingEnabled()) {
if(h.is_seed())
listModel->setData(listModel->index(row, TR_PRIORITY), -1);
else
listModel->setData(listModel->index(row, TR_PRIORITY), QVariant((int)h.queue_position()));
if(h.is_queued()) {
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) {
@ -383,7 +386,7 @@ int TransferListWidget::updateTorrent(int row) { @@ -383,7 +386,7 @@ int TransferListWidget::updateTorrent(int row) {
}
listModel->setData(listModel->index(row, TR_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/checking.png"))), Qt::DecorationRole);
listModel->setData(listModel->index(row, TR_STATUS), s);
}else {
} else {
listModel->setData(listModel->index(row, TR_ETA), QVariant((qlonglong)MAX_ETA));
if(h.is_seed()) {
s = STATE_QUEUED_UP;

Loading…
Cancel
Save