Qt/IOWindow: Fix detection of button names containing non-alphabetical characters

The button wouldn't be highlighted in the list, as it would look for something like `Click 1` instead of Click 1.
This commit is contained in:
Techjar
2018-07-16 17:15:37 -04:00
parent 6044165f9d
commit f37813d8b6
3 changed files with 24 additions and 11 deletions

View File

@ -187,7 +187,8 @@ void IOWindow::OnDetectButtonPressed()
btn->setText(QStringLiteral("..."));
const auto expr = MappingCommon::DetectExpression(
m_reference, g_controller_interface.FindDevice(m_devq).get(), m_devq);
m_reference, g_controller_interface.FindDevice(m_devq).get(), m_devq,
MappingCommon::Quote::Off);
btn->setText(old_label);