Merge pull request #6353 from spycrab/qt_fix_invdev
Qt/MappingWindow: Fix invalid device being selected by default
This commit is contained in:
commit
44391ad2fe
|
@ -224,6 +224,7 @@ void MappingWindow::RefreshDevices()
|
||||||
|
|
||||||
const auto default_device = m_controller->GetDefaultDevice().ToString();
|
const auto default_device = m_controller->GetDefaultDevice().ToString();
|
||||||
|
|
||||||
|
if (!default_device.empty())
|
||||||
m_devices_combo->addItem(QString::fromStdString(default_device));
|
m_devices_combo->addItem(QString::fromStdString(default_device));
|
||||||
|
|
||||||
for (const auto& name : g_controller_interface.GetAllDeviceStrings())
|
for (const auto& name : g_controller_interface.GetAllDeviceStrings())
|
||||||
|
|
Loading…
Reference in New Issue