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