mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
UI: Guard ResetInvalidSelection check behind Qt < 6.5.1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user