diff --git a/src/torrentadditiondlg.cpp b/src/torrentadditiondlg.cpp index fd4c08869..3118cc630 100644 --- a/src/torrentadditiondlg.cpp +++ b/src/torrentadditiondlg.cpp @@ -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();