diff --git a/Changelog b/Changelog index c4b0cca90..df1ba89bb 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ * Unreleased - Christophe Dumez - v2.5.3 - BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184) + - BUGFIX: Make sure the number of torrents is properly set on startup (closes #694135) * Sun Dec 19 2010 - Christophe Dumez - v2.5.2 - BUGFIX: Fix alternative speed icon staying pressed when disabled diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3e13c7b89..a690203a0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -163,8 +163,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo vSplitter->setCollapsible(0, true); vSplitter->setCollapsible(1, false); tabs->addTab(vSplitter, QIcon(QString::fromUtf8(":/Icons/oxygen/folder-remote.png")), tr("Transfers")); - connect(transferList->getSourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(updateNbTorrents())); - connect(transferList->getSourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(updateNbTorrents())); vboxLayout->addWidget(tabs); @@ -263,6 +261,11 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo connect(updater, SIGNAL(updateCheckFinished(bool, QString)), SLOT(handleUpdateCheckFinished(bool, QString))); updater->checkForUpdates(); #endif + + // Update the number of torrents (tab) + updateNbTorrents(); + connect(transferList->getSourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(updateNbTorrents())); + connect(transferList->getSourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(updateNbTorrents())); } void MainWindow::deleteBTSession() {