mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 19:34:17 +00:00
Some of the `delete` can be handled by the findChild loop
This commit is contained in:
parent
e2a090f03f
commit
f741d3131d
@ -654,12 +654,12 @@ void MainWindow::cleanup()
|
|||||||
#if (defined(Q_OS_WIN) || defined(Q_OS_MAC))
|
#if (defined(Q_OS_WIN) || defined(Q_OS_MAC))
|
||||||
m_programUpdateTimer->stop();
|
m_programUpdateTimer->stop();
|
||||||
#endif
|
#endif
|
||||||
delete m_searchFilter;
|
|
||||||
delete m_searchFilterAction;
|
delete m_searchFilterAction;
|
||||||
delete m_tabs; // this seems enough to also delete all contained widgets
|
|
||||||
delete m_statusBar;
|
// remove all child widgets
|
||||||
delete m_pwr;
|
while (QWidget *w = findChild<QWidget *>())
|
||||||
delete m_toolbarMenu;
|
delete w;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::readSettings()
|
void MainWindow::readSettings()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user