Remove redundant UI cleanups

Just exiting the application will handle all of them automatically.
This commit is contained in:
Chocobo1 2021-12-01 12:37:32 +08:00
parent c652123145
commit 1fa940876f
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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();