From ccda1553b7a263581b2f554e06b7ecc308bdd8c9 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 5 Mar 2021 00:58:48 +1000 Subject: [PATCH] Qt: Fix crash when loading input profile and multitap disabled --- src/duckstation-qt/controllersettingswidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/duckstation-qt/controllersettingswidget.cpp b/src/duckstation-qt/controllersettingswidget.cpp index bc4a456ce..dfc82b4af 100644 --- a/src/duckstation-qt/controllersettingswidget.cpp +++ b/src/duckstation-qt/controllersettingswidget.cpp @@ -118,6 +118,9 @@ void ControllerSettingsWidget::onProfileLoaded() { for (int i = 0; i < static_cast(m_port_ui.size()); i++) { + if (!m_port_ui[i].widget) + continue; + ControllerType ctype = Settings::ParseControllerTypeName( m_host_interface ->GetStringSettingValue(QStringLiteral("Controller%1").arg(i + 1).toStdString().c_str(),