Browse Source

Fix available disk space label on single file torrents.

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
f22f7cf17a
  1. 4
      src/addnewtorrentdialog.cpp

4
src/addnewtorrentdialog.cpp

@ -301,7 +301,9 @@ void AddNewTorrentDialog::updateDiskSpaceLabel() { @@ -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);
}

Loading…
Cancel
Save