From 1fa940876fa630b754fa9fab4d360da837f60528 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 1 Dec 2021 12:37:32 +0800 Subject: [PATCH] Remove redundant UI cleanups Just exiting the application will handle all of them automatically. --- src/gui/mainwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 1db316dde..48ab76156 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -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();