1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 20:44:15 +00:00

Code clean up

This commit is contained in:
Christophe Dumez 2010-12-04 13:58:36 +00:00
parent 42f5cbf2a6
commit 9bf673210f

View File

@ -269,10 +269,8 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
void MainWindow::deleteBTSession() {
guiUpdater->stop();
status_bar->stopTimer();
if(BTSession) {
delete BTSession;
QBtSession::drop();
BTSession = 0;
}
QTimer::singleShot(0, this, SLOT(close()));
}