fix: panel/window bugs surfaced by new gtest coverage

- MainWindowLayoutInfo: toXml() iterated open_sequences_ for the
  <viewers> section and fromXml() never parsed it, so open footage
  viewers were lost on layout save/load
- PanelWidget never set QObject::objectName, so
  PanelManager::GetPanelWithName() always returned nullptr and every
  caller (layout restore, NodeView param panel lookup) was dead code
- PanelManager::DestroyInstance() left instance_ dangling (UAF on any
  later RegisterPanel), unlike the other singletons
This commit is contained in:
2026-07-17 16:53:13 +08:00
parent 0dae545cba
commit c812f6ea28
3 changed files with 21 additions and 2 deletions
+1
View File
@@ -98,6 +98,7 @@ void PanelManager::CreateInstance()
void PanelManager::DestroyInstance()
{
delete instance_;
instance_ = nullptr;
}
PanelManager *PanelManager::instance()