From b0c5362da6217b90c5af5d3488ba095a4578f15c Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Mon, 23 Aug 2021 12:40:46 +0100 Subject: [PATCH] (Qt) Fix segfault when accessing Video Options menu on non-Windows platforms --- ui/drivers/qt/qt_options.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/drivers/qt/qt_options.cpp b/ui/drivers/qt/qt_options.cpp index 31a27aeb63..6cda7a630e 100644 --- a/ui/drivers/qt/qt_options.cpp +++ b/ui/drivers/qt/qt_options.cpp @@ -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);