Browse Source

Make sure we don't inhibit system sleep before qBTsession destructor

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
9a5568349f
  1. 2
      src/mainwindow.cpp

2
src/mainwindow.cpp

@ -366,9 +366,9 @@ MainWindow::~MainWindow() {
delete switchRSSShortcut; delete switchRSSShortcut;
IconProvider::drop(); IconProvider::drop();
// Delete QBtSession::instance() object // Delete QBtSession::instance() object
m_pwr->setActivityState(false);
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…
Cancel
Save