Improved "delete torrents once they reach a given ratio"

Fix button order in exit confirmation dialog
This commit is contained in:
Christophe Dumez
2010-06-22 17:50:36 +00:00
parent 5a58ace305
commit 0de843911d
4 changed files with 4 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ void Bittorrent::deleteBigRatios() {
if(h.is_seed()) {
const QString hash = h.hash();
const float ratio = getRealRatio(hash);
if(ratio <= MAX_RATIO && ratio > ratio_limit) {
if(ratio <= MAX_RATIO && ratio >= ratio_limit) {
addConsoleMessage(tr("%1 reached the maximum ratio you set.").arg(h.name()));
deleteTorrent(hash);
//emit torrent_ratio_deleted(fileName);