mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Improvement to last commit
This commit is contained in:
parent
9fc60abc1a
commit
ab579e3449
@ -252,6 +252,11 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||||||
// Populate the transfer list
|
// Populate the transfer list
|
||||||
transferList->getSourceModel()->populate();
|
transferList->getSourceModel()->populate();
|
||||||
|
|
||||||
|
// 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()));
|
||||||
|
|
||||||
qDebug("GUI Built");
|
qDebug("GUI Built");
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
if(!pref.neverCheckFileAssoc() && !Preferences::isFileAssocOk()) {
|
if(!pref.neverCheckFileAssoc() && !Preferences::isFileAssocOk()) {
|
||||||
@ -276,10 +281,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||||||
}
|
}
|
||||||
#endif
|
#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() {
|
void MainWindow::deleteBTSession() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user