Don't double delete a pointer

`m_searchFilterAction` is owned by Qt, so we shouldn't delete it
manually.
This commit is contained in:
Chocobo1 2018-11-05 17:07:57 +08:00 committed by sledgehammer999
parent 4599da3ce1
commit 4793a35e0b
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -802,8 +802,6 @@ void MainWindow::cleanup()
m_programUpdateTimer->stop();
#endif
delete m_searchFilterAction;
// remove all child widgets
while (QWidget *w = findChild<QWidget * >())
delete w;