mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Correctly update the torrent size in torrent addition dialog
This commit is contained in:
parent
6b7af5b464
commit
0a2efaf5fc
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,7 @@ torrentAdditionDialog::torrentAdditionDialog(GUI *parent, QBtSession* _BTSession
|
||||||
BTSession = _BTSession;
|
BTSession = _BTSession;
|
||||||
// Set Properties list model
|
// Set Properties list model
|
||||||
PropListModel = new TorrentFilesModel();
|
PropListModel = new TorrentFilesModel();
|
||||||
|
connect(PropListModel, SIGNAL(filteredFilesChanged()), SLOT(updateDiskSpaceLabels()));
|
||||||
torrentContentList->setModel(PropListModel);
|
torrentContentList->setModel(PropListModel);
|
||||||
torrentContentList->hideColumn(PROGRESS);
|
torrentContentList->hideColumn(PROGRESS);
|
||||||
PropDelegate = new PropListDelegate();
|
PropDelegate = new PropListDelegate();
|
||||||
|
@ -280,6 +281,9 @@ void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
||||||
}
|
}
|
||||||
savePathTxt->setEditText(save_path);
|
savePathTxt->setEditText(save_path);
|
||||||
|
|
||||||
|
// Update size labels
|
||||||
|
updateDiskSpaceLabels();
|
||||||
|
|
||||||
// Show the dialog
|
// Show the dialog
|
||||||
show();
|
show();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue