mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03: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
9c3382f0d7
commit
0bbfeeb987
1 changed files with 5 additions and 2 deletions
|
@ -781,8 +781,11 @@ void MainWindow::saveSplitterSettings() const
|
||||||
|
|
||||||
void MainWindow::cleanup()
|
void MainWindow::cleanup()
|
||||||
{
|
{
|
||||||
saveSettings();
|
if (!m_neverShown)
|
||||||
saveSplitterSettings();
|
{
|
||||||
|
saveSettings();
|
||||||
|
saveSplitterSettings();
|
||||||
|
}
|
||||||
|
|
||||||
// delete RSSWidget explicitly to avoid crash in
|
// delete RSSWidget explicitly to avoid crash in
|
||||||
// handleRSSUnreadCountUpdated() at application shutdown
|
// handleRSSUnreadCountUpdated() at application shutdown
|
||||||
|
|
Loading…
Reference in a new issue