diff --git a/src/platform/qt/CheatsModel.cpp b/src/platform/qt/CheatsModel.cpp index a2c535f0c..77e608ec8 100644 --- a/src/platform/qt/CheatsModel.cpp +++ b/src/platform/qt/CheatsModel.cpp @@ -184,7 +184,7 @@ QString CheatsModel::toString(const QModelIndexList& indices) const { std::sort(order.begin(), order.end()); for (int i : order) { mCheatSet* set = setOrder[i]; - QList indexOrdex = setIndices[set].toList(); + QList indexOrdex = setIndices[set].values(); std::sort(indexOrdex.begin(), indexOrdex.end()); for (size_t j : indexOrdex) { strings.append(*StringListGetPointer(&set->lines, j));