diff --git a/src/src/Settings.cpp b/src/src/Settings.cpp index afd28586..4009d21a 100644 --- a/src/src/Settings.cpp +++ b/src/src/Settings.cpp @@ -136,8 +136,8 @@ void Settings::setNewResolutionList() QStringList resolutiontemp1 = resolutionDatabase[j].split("x"); QStringList resolutiontemp2 = resolutionDatabase[j + 1].split("x"); - if ((resolutiontemp1[0].toInt() <= resolutiontemp2[0].toInt()) - || (resolutiontemp1[1].toInt() < resolutiontemp2[1].toInt())) { + if ((resolutiontemp1[0].toInt() < resolutiontemp2[0].toInt()) || + (resolutiontemp1[0].toInt() == resolutiontemp2[0].toInt() && (resolutiontemp1[1].toInt() < resolutiontemp2[1].toInt()))) { QString resolutionstr = resolutionDatabase[j + 1]; resolutionDatabase[j + 1] = resolutionDatabase[j]; resolutionDatabase[j] = resolutionstr;