Skip to content
Permalink
Browse files
Merge pull request #6353 from spycrab/qt_fix_invdev
Qt/MappingWindow: Fix invalid device being selected by default
  • Loading branch information
leoetlino committed Feb 4, 2018
2 parents 32d2063 + 489f478 commit 44391ad
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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())
{

0 comments on commit 44391ad

Please sign in to comment.