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:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user