Commit b9bbfc2c authored by Volker Krause's avatar Volker Krause
Browse files

Don't crash the country model with out of range indexes

Happens easily with the -1 of a not yet select combo box.
parent 4e82fc86
......@@ -41,6 +41,9 @@ int CountryModel::isoCodeToIndex(const QString &isoCode) const
QString CountryModel::isoCodeFromIndex(int index) const
if (index < 0 || index >= m_countries.size()) {
return {};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment