mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
- Fix completed torrent counting
- Make sure the status bar is displayed before showing the GUI
This commit is contained in:
parent
54f2e66464
commit
cedc87a703
3 changed files with 59 additions and 62 deletions
|
@ -196,14 +196,14 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||
// Accept drag 'n drops
|
||||
setAcceptDrops(true);
|
||||
createKeyboardShortcuts();
|
||||
// Create status bar
|
||||
status_bar = new StatusBar(QMainWindow::statusBar(), BTSession);
|
||||
|
||||
show();
|
||||
|
||||
// Load Window state and sizes
|
||||
readSettings();
|
||||
properties->readSettings();
|
||||
// Create status bar
|
||||
status_bar = new StatusBar(QMainWindow::statusBar(), BTSession);
|
||||
|
||||
if(Preferences::startMinimized()) {
|
||||
setWindowState(Qt::WindowMinimized);
|
||||
|
|
|
@ -239,9 +239,8 @@ int TransferListWidget::updateTorrent(int row) {
|
|||
return s;
|
||||
}
|
||||
try {
|
||||
if(!h.is_seed()) {
|
||||
// Queueing code
|
||||
if(BTSession->isQueueingEnabled()) {
|
||||
if(!h.is_seed() && BTSession->isQueueingEnabled()) {
|
||||
listModel->setData(listModel->index(row, PRIORITY), QVariant((int)h.queue_position()));
|
||||
if(h.is_queued()) {
|
||||
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) {
|
||||
|
@ -300,8 +299,6 @@ int TransferListWidget::updateTorrent(int row) {
|
|||
listModel->setData(listModel->index(row, STATUS), STATE_SEEDING);
|
||||
s = STATE_SEEDING;
|
||||
}
|
||||
}
|
||||
|
||||
// Common to both downloads and uploads
|
||||
listModel->setData(listModel->index(row, PROGRESS), QVariant((double)h.progress()));
|
||||
listModel->setData(listModel->index(row, DLSPEED), QVariant((double)h.download_payload_rate()));
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
statusSep3->setFixedSize(3, 18);
|
||||
statusSep3->setFrameStyle(QFrame::VLine);
|
||||
statusSep3->setFrameShadow(QFrame::Raised);
|
||||
layout->addWidget(DHTLbl, 0, 0, Qt::AlignRight);
|
||||
layout->addWidget(DHTLbl, 0, 0, Qt::AlignLeft);
|
||||
//layout->setColumnStretch(0, 10);
|
||||
layout->addWidget(statusSep1, 0, 1, Qt::AlignRight);
|
||||
//layout->setColumnStretch(1, 1);
|
||||
|
@ -96,7 +96,7 @@ public:
|
|||
//layout->setColumnStretch(2, 1);
|
||||
layout->addWidget(statusSep2, 0, 3, Qt::AlignLeft);
|
||||
//layout->setColumnStretch(3, 1);
|
||||
layout->addWidget(dlSpeedLbl, 0, 4);
|
||||
layout->addWidget(dlSpeedLbl, 0, 4, Qt::AlignLeft);
|
||||
//layout->setColumnStretch(4, 10);
|
||||
layout->addWidget(statusSep3, 0, 5, Qt::AlignLeft);
|
||||
//layout->setColumnStretch(5, 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue