Fix torrent size update in torrent addition dialog

This commit is contained in:
Christophe Dumez
2010-10-31 13:56:22 +00:00
parent 4176abd18a
commit 3a72c11e39

View File

@@ -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();