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:
parent
42f5cbf2a6
commit
9bf673210f
@ -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…
x
Reference in New Issue
Block a user