From 3a72c11e394159d57967148760ab6a5a205f8cd3 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 31 Oct 2010 13:56:22 +0000 Subject: [PATCH] Fix torrent size update in torrent addition dialog --- src/torrentadditiondlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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();