From 0a2efaf5fc3e8f9e922767336549a167b97fe036 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 31 Oct 2010 14:12:13 +0000 Subject: [PATCH] Correctly update the torrent size in torrent addition dialog --- src/torrentadditiondlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/torrentadditiondlg.cpp b/src/torrentadditiondlg.cpp index 6efe99505..ae6f7a64d 100644 --- a/src/torrentadditiondlg.cpp +++ b/src/torrentadditiondlg.cpp @@ -38,6 +38,7 @@ torrentAdditionDialog::torrentAdditionDialog(GUI *parent, QBtSession* _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(); @@ -280,6 +281,9 @@ void torrentAdditionDialog::showLoad(QString filePath, QString from_url) { } savePathTxt->setEditText(save_path); + // Update size labels + updateDiskSpaceLabels(); + // Show the dialog show();