From 7e65dadd8ffe24dfa57d4b15ba52213891bd7e1e Mon Sep 17 00:00:00 2001 From: Oleg Samarin Date: Sun, 10 Apr 2022 09:31:00 +0300 Subject: [PATCH] Fixed not saving the main window position and size in organ settings https://github.com/GrandOrgue/grandorgue/issues/1093 (#1106) --- CHANGELOG.md | 1 + src/grandorgue/GODocument.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43341c76b..c6e2c68cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Fixed not saving the main window position and size in organ settings https://github.com/GrandOrgue/grandorgue/issues/1093 - Fixed sound distortion while a reveberation is active https://github.com/GrandOrgue/grandorgue/issues/983 - Fixed hang on reopening sound device (exit from settings, Panic) while a reveberation is active https://github.com/GrandOrgue/grandorgue/issues/983 - Added support for building against system-wide ZitaConvolver library https://github.com/GrandOrgue/grandorgue/issues/1095 diff --git a/src/grandorgue/GODocument.cpp b/src/grandorgue/GODocument.cpp index 60990e53c..0ae72d97c 100644 --- a/src/grandorgue/GODocument.cpp +++ b/src/grandorgue/GODocument.cpp @@ -129,7 +129,7 @@ void GODocument::ShowPanel(unsigned id) { void GODocument::SyncState() { m_organfile->SetVolume(m_sound.GetEngine().GetVolume()); if (p_MainWindow) - p_MainWindow->SetPosSize(p_MainWindow->GetPosSize()); + m_organfile->GetMainWindowData()->SetWindowRect(p_MainWindow->GetPosSize()); for (unsigned i = 0; i < m_organfile->GetPanelCount(); i++) m_organfile->GetPanel(i)->SetInitialOpenWindow(false); GODocumentBase::SyncState();