From 489f478751071eca22ffca8ef19a528158db408f Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 3 Feb 2018 18:30:57 +0100 Subject: [PATCH] Qt/MappingWindow: Fix invalid device being selected by default --- Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp index 7c0c72d40f..3ceaaa5b87 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp @@ -224,7 +224,8 @@ void MappingWindow::RefreshDevices() 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()) {