mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Fix torrent size update in torrent addition dialog
This commit is contained in:
@@ -37,6 +37,7 @@ torrentAdditionDialog::torrentAdditionDialog(GUI *parent, Bittorrent* _BTSession
|
||||
BTSession = _BTSession;
|
||||
// Set Properties list model
|
||||
PropListModel = new TorrentFilesModel();
|
||||
connect(PropListModel, SIGNAL(filteredFilesChanged()), SLOT(updateDiskSpaceLabels()));
|
||||
torrentContentList->setModel(PropListModel);
|
||||
torrentContentList->hideColumn(PROGRESS);
|
||||
PropDelegate = new PropListDelegate();
|
||||
@@ -281,6 +282,9 @@ void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
||||
}
|
||||
savePathTxt->setEditText(save_path);
|
||||
|
||||
// Update size labels
|
||||
updateDiskSpaceLabels();
|
||||
|
||||
// Show the dialog
|
||||
show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user