1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Fix available disk space label on single file torrents.

This commit is contained in:
sledgehammer999 2014-08-31 00:05:38 +03:00
parent 45e95e6cc2
commit f22f7cf17a

View File

@ -301,7 +301,9 @@ void AddNewTorrentDialog::updateDiskSpaceLabel() {
QString size_string = torrent_size ? misc::friendlyUnit(torrent_size) : QString(tr("Not Available", "This size is unavailable."));
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 += ")";
ui->size_lbl->setText(size_string);
}