mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
committed by
GitHub
parent
71e53a4628
commit
5b269a782a
@@ -481,6 +481,7 @@ MainWindow::MainWindow(IGUIApplication *app, QWidget *parent)
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
app()->desktopIntegration()->setMenu(nullptr);
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
@@ -1171,11 +1172,6 @@ void MainWindow::closeEvent(QCloseEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
// Disable some UI to prevent user interactions
|
||||
app()->desktopIntegration()->disconnect();
|
||||
app()->desktopIntegration()->setToolTip(tr("qBittorrent is shutting down..."));
|
||||
app()->desktopIntegration()->menu()->setEnabled(false);
|
||||
|
||||
// Accept exit
|
||||
e->accept();
|
||||
qApp->exit();
|
||||
|
||||
Reference in New Issue
Block a user