Merge pull request #12857 from jdgleaver/qt-video-settings-fix

(Qt) Fix segfault when accessing Video Options menu on non-Windows platforms
This commit is contained in:
Autechre 2021-08-23 13:56:33 +02:00 committed by GitHub
commit e5d6d411be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1228,7 +1228,11 @@ QWidget *VideoPage::widget()
QHBoxLayout *windowedCustomSizeLayout = new QHBoxLayout;
FormLayout *leftWindowedCustomSizeForm = new FormLayout;
FormLayout *rightWindowedCustomSizeForm = new FormLayout;
#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__)
CheckableSettingsGroup *savePosGroup = new CheckableSettingsGroup(MENU_ENUM_LABEL_VIDEO_WINDOW_SAVE_POSITION);
#else
CheckableSettingsGroup *savePosGroup = new CheckableSettingsGroup(MENU_ENUM_LABEL_VIDEO_WINDOW_CUSTOM_SIZE_ENABLE);
#endif
SettingsGroup *syncGroup = new SettingsGroup("Synchronization");
CheckableSettingsGroup *vSyncGroup = new CheckableSettingsGroup(MENU_ENUM_LABEL_VIDEO_VSYNC);