UI: Guard ResetInvalidSelection check behind Qt < 6.5.1
This commit is contained in:
parent
61efa3cbeb
commit
240a718818
1 changed files with 3 additions and 2 deletions
|
|
@ -5052,7 +5052,8 @@ void OBSBasicSettings::AdvOutRecCheckCodecs()
|
|||
AdvOutRecCheckWarnings();
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) && QT_VERSION < QT_VERSION_CHECK(6, 5, 1)
|
||||
// Workaround for QTBUG-56064 on macOS
|
||||
static void ResetInvalidSelection(QComboBox *cbox)
|
||||
{
|
||||
int idx = cbox->currentIndex();
|
||||
|
|
@ -5115,7 +5116,7 @@ void OBSBasicSettings::AdvOutRecCheckWarnings()
|
|||
QTStr("Basic.Settings.Advanced.AutoRemux").arg("mp4"));
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) && QT_VERSION < QT_VERSION_CHECK(6, 5, 1)
|
||||
// Workaround for QTBUG-56064 on macOS
|
||||
ResetInvalidSelection(ui->advOutRecEncoder);
|
||||
ResetInvalidSelection(ui->advOutRecAEncoder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue