fix: dialog bugs surfaced by new gtest coverage

- SequencePreset::Save() wrote element "interlacing_" while Load() read
  "interlacing", losing the interlacing mode on preset round-trips;
  Save() now writes "interlacing" and Load() accepts both for backward
  compatibility with existing preset files
- ExportFormatComboBox: current_ was never initialized (UB on GetFormat
  before first user selection)
- ExportSubtitlesTab::SetSidecarEnabled() called setEnabled instead of
  setChecked, so restored export params could never re-enable sidecar
  subtitles
- h264section.h: static const int constants were odr-use unsafe (link
  error when referenced); changed to static constexpr
This commit is contained in:
2026-07-17 13:20:51 +08:00
parent 807e02614b
commit 1475525eb2
4 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ private:
Menu *custom_menu_;
ExportFormat::Format current_;
ExportFormat::Format current_ = ExportFormat::kFormatCount;
};
}