From 98cce645a977979d7a4d38e96bcb5f29200e3aeb Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 3 Nov 2024 20:20:36 +1000 Subject: [PATCH] Qt: Fix empty device list when editing profile --- src/duckstation-qt/controllersettingswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/controllersettingswindow.cpp b/src/duckstation-qt/controllersettingswindow.cpp index 89d1aac07..4c76f3d87 100644 --- a/src/duckstation-qt/controllersettingswindow.cpp +++ b/src/duckstation-qt/controllersettingswindow.cpp @@ -489,7 +489,7 @@ void ControllerSettingsWindow::createWidgets() m_ui.settingsContainer->addWidget(m_global_settings); connect(m_global_settings, &ControllerGlobalSettingsWidget::bindingSetupChanged, this, &ControllerSettingsWindow::createWidgets); - if (isEditingGlobalSettings()) + if (!isEditingGameSettings()) { for (const auto& [identifier, device_name] : m_device_list) m_global_settings->addDeviceToList(QString::fromStdString(identifier), QString::fromStdString(device_name));