mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 21:38:51 +03:00
Some of the `delete` can be handled by the findChild loop
This commit is contained in:
parent
e2a090f03f
commit
f741d3131d
1 changed files with 5 additions and 5 deletions
|
@ -654,12 +654,12 @@ void MainWindow::cleanup()
|
|||
#if (defined(Q_OS_WIN) || defined(Q_OS_MAC))
|
||||
m_programUpdateTimer->stop();
|
||||
#endif
|
||||
delete m_searchFilter;
|
||||
|
||||
delete m_searchFilterAction;
|
||||
delete m_tabs; // this seems enough to also delete all contained widgets
|
||||
delete m_statusBar;
|
||||
delete m_pwr;
|
||||
delete m_toolbarMenu;
|
||||
|
||||
// remove all child widgets
|
||||
while (QWidget *w = findChild<QWidget *>())
|
||||
delete w;
|
||||
}
|
||||
|
||||
void MainWindow::readSettings()
|
||||
|
|
Loading…
Reference in a new issue