mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -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();
|
||||
QBtSession::drop();
|
||||
m_pwr->setActivityState(false);
|
||||
QTimer::singleShot(0, this, SLOT(close()));
|
||||
close();
|
||||
}
|
||||
|
||||
// Destructor
|
||||
|
@ -367,6 +367,7 @@ MainWindow::~MainWindow() {
|
|||
// Delete QBtSession::instance() object
|
||||
qDebug("Deleting QBtSession::instance()");
|
||||
QBtSession::drop();
|
||||
m_pwr->setActivityState(false);
|
||||
qDebug("Exiting GUI destructor...");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue