Qt: Fix empty device list when editing profile
This commit is contained in:
parent
8c4d595a89
commit
98cce645a9
|
@ -489,7 +489,7 @@ void ControllerSettingsWindow::createWidgets()
|
||||||
m_ui.settingsContainer->addWidget(m_global_settings);
|
m_ui.settingsContainer->addWidget(m_global_settings);
|
||||||
connect(m_global_settings, &ControllerGlobalSettingsWidget::bindingSetupChanged, this,
|
connect(m_global_settings, &ControllerGlobalSettingsWidget::bindingSetupChanged, this,
|
||||||
&ControllerSettingsWindow::createWidgets);
|
&ControllerSettingsWindow::createWidgets);
|
||||||
if (isEditingGlobalSettings())
|
if (!isEditingGameSettings())
|
||||||
{
|
{
|
||||||
for (const auto& [identifier, device_name] : m_device_list)
|
for (const auto& [identifier, device_name] : m_device_list)
|
||||||
m_global_settings->addDeviceToList(QString::fromStdString(identifier), QString::fromStdString(device_name));
|
m_global_settings->addDeviceToList(QString::fromStdString(identifier), QString::fromStdString(device_name));
|
||||||
|
|
Loading…
Reference in New Issue