Fix "Pause/Delete" torrents once they reach a given ratio

This commit is contained in:
Christophe Dumez 2010-06-22 17:46:07 +00:00
commit dfecdb1956
3 changed files with 11 additions and 6 deletions

View file

@ -142,7 +142,7 @@ public:
if(ratio > 100.)
QItemDelegate::drawDisplay(painter, opt, opt.rect, QString::fromUtf8(""));
else
QItemDelegate::drawDisplay(painter, opt, opt.rect, QString::number(ratio, 'f', 1));
QItemDelegate::drawDisplay(painter, opt, opt.rect, QString::number(ratio, 'f', 2));
break;
}
case TR_PRIORITY: {