mirror of
https://github.com/c0re100/qBittorrent-Enhanced-Edition.git
synced 2025-01-08 11:57:51 +08:00
Remove redundant UI cleanups
Just exiting the application will handle all of them automatically.
This commit is contained in:
parent
c652123145
commit
1fa940876f
@ -1218,15 +1218,12 @@ void MainWindow::closeEvent(QCloseEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
// abort search if any
|
||||
delete m_searchWidget;
|
||||
|
||||
hide();
|
||||
#ifndef Q_OS_MACOS
|
||||
// Hide tray icon
|
||||
if (m_systrayIcon)
|
||||
m_systrayIcon->hide();
|
||||
#endif
|
||||
|
||||
// Accept exit
|
||||
e->accept();
|
||||
qApp->exit();
|
||||
|
Loading…
Reference in New Issue
Block a user