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
+4 -4
View File
@@ -40,12 +40,12 @@ public:
int GetValue() const;
void SetValue(int c);
static const int kDefaultH264CRF = 18;
static const int kDefaultH265CRF = 23;
static constexpr int kDefaultH264CRF = 18;
static constexpr int kDefaultH265CRF = 23;
private:
static const int kMinimumCRF = 0;
static const int kMaximumCRF = 51;
static constexpr int kMinimumCRF = 0;
static constexpr int kMaximumCRF = 51;
QSlider *crf_slider_;
};