mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Merge pull request #4937 from Chocobo1/option_crash
Fix crash when qbt exits with options dialog opened
This commit is contained in:
commit
8e64ffba01
2 changed files with 8 additions and 9 deletions
|
@ -678,12 +678,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…
Add table
Add a link
Reference in a new issue