mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Code clean up
This commit is contained in:
parent
42f5cbf2a6
commit
9bf673210f
1 changed files with 2 additions and 4 deletions
|
@ -269,10 +269,8 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
||||||
void MainWindow::deleteBTSession() {
|
void MainWindow::deleteBTSession() {
|
||||||
guiUpdater->stop();
|
guiUpdater->stop();
|
||||||
status_bar->stopTimer();
|
status_bar->stopTimer();
|
||||||
if(BTSession) {
|
QBtSession::drop();
|
||||||
delete BTSession;
|
|
||||||
BTSession = 0;
|
BTSession = 0;
|
||||||
}
|
|
||||||
QTimer::singleShot(0, this, SLOT(close()));
|
QTimer::singleShot(0, this, SLOT(close()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue