Merge pull request #6494 from spycrab/qt_fix_ar

Qt/CheatCodeEditor: Fix valid, encrypted AR codes not being accepted
This commit is contained in:
Pierre Bourdon 2018-03-23 00:52:32 +01:00 committed by GitHub
commit bc3eb22c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ bool CheatCodeEditor::AcceptAR()
QStringList blocks = line.split(QStringLiteral("-"));
if (blocks.size() == 3 && blocks[0].size() == 4 && blocks[1].size() == 4 &&
blocks[2].size() == 4)
blocks[2].size() == 5)
{
encrypted_lines.emplace_back(blocks[0].toStdString() + blocks[1].toStdString() +
blocks[2].toStdString());