mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 06:54:20 +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();
|
||||
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…
x
Reference in New Issue
Block a user