Skip to content

Commit

Permalink
- BUGFIX: Uninhibit system sleep on exit (Vladimir Golovnev)
Browse files Browse the repository at this point in the history
- BUGFIX: Fix error on Windows when qBittorrent is shutdown by session manager (Vladimir Golovnev)
  • Loading branch information
Christophe Dumez committed Mar 30, 2011
1 parent 01b5844 commit ba7ece3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ void MainWindow::deleteBTSession() {
status_bar->stopTimer();
QBtSession::drop();
m_pwr->setActivityState(false);
QTimer::singleShot(0, this, SLOT(close()));
close();
}

// Destructor
Expand Down Expand Up @@ -367,6 +367,7 @@ MainWindow::~MainWindow() {
// Delete QBtSession::instance() object
qDebug("Deleting QBtSession::instance()");
QBtSession::drop();
m_pwr->setActivityState(false);
qDebug("Exiting GUI destructor...");
}

Expand Down

0 comments on commit ba7ece3

Please sign in to comment.