From a9686e8c4bb9b5deab1f436c25ec00a6cb4e9729 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 6 Sep 2009 20:13:18 +0000 Subject: [PATCH] - Removed useless variable check --- src/torrentAddition.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/torrentAddition.h b/src/torrentAddition.h index 2d4a7af47..e21e05f6b 100644 --- a/src/torrentAddition.h +++ b/src/torrentAddition.h @@ -279,11 +279,8 @@ public slots: void updateDiskSpaceLabels() { unsigned long long available = misc::freeDiskSpaceOnPath(savePathTxt->text()); - if (available > 0) { - lbl_disk_space->setText(misc::friendlyUnit(available)); - } else { - lbl_disk_space->setText(tr("Unknown")); - } + lbl_disk_space->setText(misc::friendlyUnit(available)); + // Determine torrent size unsigned long long torrent_size = 0; int nbFiles = t->num_files();