mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-18 22:21:55 +03:00
- Removed useless variable check
This commit is contained in:
parent
e2d801d920
commit
a9686e8c4b
1 changed files with 2 additions and 5 deletions
|
@ -279,11 +279,8 @@ public slots:
|
||||||
|
|
||||||
void updateDiskSpaceLabels() {
|
void updateDiskSpaceLabels() {
|
||||||
unsigned long long available = misc::freeDiskSpaceOnPath(savePathTxt->text());
|
unsigned long long available = misc::freeDiskSpaceOnPath(savePathTxt->text());
|
||||||
if (available > 0) {
|
|
||||||
lbl_disk_space->setText(misc::friendlyUnit(available));
|
lbl_disk_space->setText(misc::friendlyUnit(available));
|
||||||
} else {
|
|
||||||
lbl_disk_space->setText(tr("Unknown"));
|
|
||||||
}
|
|
||||||
// Determine torrent size
|
// Determine torrent size
|
||||||
unsigned long long torrent_size = 0;
|
unsigned long long torrent_size = 0;
|
||||||
int nbFiles = t->num_files();
|
int nbFiles = t->num_files();
|
||||||
|
|
Loading…
Reference in a new issue