Don't overwrite stored layout of main window with incorrect one

Prevents overwriting of the stored layout in case the main window was hidden at startup and
has not been shown since, because incorrect dimensions can be provided by it in this case.

PR #20725.
Closes #20720.
This commit is contained in:
Vladimir Golovnev 2024-04-20 11:10:31 +03:00 committed by GitHub
parent 7310eec74e
commit fc3953dbaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -795,9 +795,12 @@ void MainWindow::saveSplitterSettings() const
} }
void MainWindow::cleanup() void MainWindow::cleanup()
{
if (!m_neverShown)
{ {
saveSettings(); saveSettings();
saveSplitterSettings(); saveSplitterSettings();
}
// delete RSSWidget explicitly to avoid crash in // delete RSSWidget explicitly to avoid crash in
// handleRSSUnreadCountUpdated() at application shutdown // handleRSSUnreadCountUpdated() at application shutdown