mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-07 03:16:48 +08:00
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:
parent
7310eec74e
commit
fc3953dbaa
@ -796,8 +796,11 @@ void MainWindow::saveSplitterSettings() const
|
||||
|
||||
void MainWindow::cleanup()
|
||||
{
|
||||
saveSettings();
|
||||
saveSplitterSettings();
|
||||
if (!m_neverShown)
|
||||
{
|
||||
saveSettings();
|
||||
saveSplitterSettings();
|
||||
}
|
||||
|
||||
// delete RSSWidget explicitly to avoid crash in
|
||||
// handleRSSUnreadCountUpdated() at application shutdown
|
||||
|
Loading…
Reference in New Issue
Block a user