mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Qt: fix a benign logic error
This commit is contained in:
@@ -173,7 +173,7 @@ ProgSettings::languageCodeToId(QString langCode)
|
||||
QString
|
||||
ProgSettings::languageIdToCode(int id)
|
||||
{
|
||||
if ((id == 0) || (id >= languages.length())) {
|
||||
if ((id <= 0) || (id >= languages.length())) {
|
||||
return "system";
|
||||
}
|
||||
return languages[id].first;
|
||||
|
||||
Reference in New Issue
Block a user