mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Make sure the number of torrents is properly updated on Startup (closes #694135)
This commit is contained in:
parent
77445645db
commit
9fc60abc1a
1 changed files with 5 additions and 2 deletions
|
@ -168,8 +168,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||
vSplitter->setCollapsible(0, true);
|
||||
vSplitter->setCollapsible(1, false);
|
||||
tabs->addTab(vSplitter, misc::getIcon("folder-remote"), 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);
|
||||
// Name filter
|
||||
|
@ -277,6 +275,11 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue