mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 11:24:15 +00: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
@ -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…
x
Reference in New Issue
Block a user