UI: Guard ResetInvalidSelection check behind Qt < 6.5.1

This commit is contained in:
gxalpha
2023-04-01 16:25:49 -07:00
committed by Jim
parent 61efa3cbeb
commit 240a718818
+3 -2
View File
@@ -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);