File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8300,9 +8300,9 @@ void QKeyMapper::on_addmapdataButton_clicked()
83008300 static QRegularExpression gamepadinfo_regex (R"( ^\[(\d)\] (.*?) \[VID=0x([0-9A-F]+)\]\[PID=0x([0-9A-F]+)\](?:\[ViGEM\])$)" );
83018301 QRegularExpressionMatch gamepadinfo_match = gamepadinfo_regex.match (gamepadselect_string);
83028302 if (gamepadinfo_match.hasMatch ()) {
8303- QString player_index = gamepadinfo_match.captured (1 );
8304- if (m_GamepadInfoMap.contains (player_index )) {
8305- currentOriKeyText = QString (" %1@%2" ).arg (currentOriKeyText, QString::number (player_index) );
8303+ QString player_index_string = gamepadinfo_match.captured (1 );
8304+ if (m_GamepadInfoMap.contains (player_index_string. toInt () )) {
8305+ currentOriKeyText = QString (" %1@%2" ).arg (currentOriKeyText, player_index_string );
83068306 }
83078307 }
83088308 }
You can’t perform that action at this time.
0 commit comments