mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Fix available disk space label on single file torrents.
This commit is contained in:
parent
45e95e6cc2
commit
f22f7cf17a
@ -301,7 +301,9 @@ void AddNewTorrentDialog::updateDiskSpaceLabel() {
|
|||||||
|
|
||||||
QString size_string = torrent_size ? misc::friendlyUnit(torrent_size) : QString(tr("Not Available", "This size is unavailable."));
|
QString size_string = torrent_size ? misc::friendlyUnit(torrent_size) : QString(tr("Not Available", "This size is unavailable."));
|
||||||
size_string += " (";
|
size_string += " (";
|
||||||
size_string += tr("Disk space: %1").arg(misc::friendlyUnit(fsutils::freeDiskSpaceOnPath(ui->save_path_combo->currentText())));
|
size_string += tr("Disk space: %1").arg(misc::friendlyUnit(fsutils::freeDiskSpaceOnPath(
|
||||||
|
ui->save_path_combo->itemData(
|
||||||
|
ui->save_path_combo->currentIndex()).toString())));
|
||||||
size_string += ")";
|
size_string += ")";
|
||||||
ui->size_lbl->setText(size_string);
|
ui->size_lbl->setText(size_string);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user