From 183453488ed570f4eba0a412e7957133903186c2 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 2 Jul 2012 22:19:05 +0300 Subject: [PATCH] Fix disk space lalel updating in torrent addition dialog --- src/addnewtorrentdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp index 1ba89aa31..0fb43a05b 100644 --- a/src/addnewtorrentdialog.cpp +++ b/src/addnewtorrentdialog.cpp @@ -176,7 +176,7 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString // Prepare content tree if (m_torrentInfo->num_files() > 1) { m_contentModel = new TorrentContentFilterModel(this); - connect(m_contentModel, SIGNAL(filteredFilesChanged()), SLOT(updateDiskSpaceLabel())); + connect(m_contentModel->model(), SIGNAL(filteredFilesChanged()), SLOT(updateDiskSpaceLabel())); ui->content_tree->setModel(m_contentModel); ui->content_tree->hideColumn(PROGRESS); m_contentDelegate = new PropListDelegate();