From 93490876c990c752da3ca04d5441eacfa854a1fe Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 13 Mar 2023 01:09:56 +1000 Subject: [PATCH] Qt: Fix crash when changing renderer --- pcsx2-qt/Settings/GraphicsSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp index 75eec08db0..d915c2b3c8 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp @@ -898,7 +898,7 @@ void GraphicsSettingsWidget::updateRendererDependentOptions() const bool is_hardware = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::OGL || type == GSRendererType::VK || type == GSRendererType::Metal); const bool is_software = (type == GSRendererType::SW); - const bool hw_fixes = (is_hardware && m_ui.enableHWFixes->checkState() == Qt::Checked); + const bool hw_fixes = (is_hardware && m_ui.enableHWFixes && m_ui.enableHWFixes->checkState() == Qt::Checked); const int prev_tab = m_ui.tabs->currentIndex(); // hw rendering