mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Qt/MappingWindow: Fix invalid device being selected by default
This commit is contained in:
parent
51d3de6787
commit
489f478751
@ -224,7 +224,8 @@ void MappingWindow::RefreshDevices()
|
|||||||
|
|
||||||
const auto default_device = m_controller->GetDefaultDevice().ToString();
|
const auto default_device = m_controller->GetDefaultDevice().ToString();
|
||||||
|
|
||||||
m_devices_combo->addItem(QString::fromStdString(default_device));
|
if (!default_device.empty())
|
||||||
|
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
Block a user