mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
- BUGFIX: Uninhibit system sleep on exit (Vladimir Golovnev)
- BUGFIX: Fix error on Windows when qBittorrent is shutdown by session manager (Vladimir Golovnev)
This commit is contained in:
parent
01b5844174
commit
ba7ece348c
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,7 @@ void MainWindow::deleteBTSession() {
|
||||||
status_bar->stopTimer();
|
status_bar->stopTimer();
|
||||||
QBtSession::drop();
|
QBtSession::drop();
|
||||||
m_pwr->setActivityState(false);
|
m_pwr->setActivityState(false);
|
||||||
QTimer::singleShot(0, this, SLOT(close()));
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
@ -367,6 +367,7 @@ MainWindow::~MainWindow() {
|
||||||
// Delete QBtSession::instance() object
|
// Delete QBtSession::instance() object
|
||||||
qDebug("Deleting QBtSession::instance()");
|
qDebug("Deleting QBtSession::instance()");
|
||||||
QBtSession::drop();
|
QBtSession::drop();
|
||||||
|
m_pwr->setActivityState(false);
|
||||||
qDebug("Exiting GUI destructor...");
|
qDebug("Exiting GUI destructor...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue