X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=formations.cpp;h=dc07a1f666b5d5790690f4e8ed152ff30e9d9d9b;hb=38bbba081db455d5f84e64bd74dcc10236fa2120;hp=a23469b9e21c7df044ac5d3c912f0b49533c8720;hpb=4e11b90cd32924efeb39606e70746a1022017881;p=pkanalytics diff --git a/formations.cpp b/formations.cpp index a23469b..dc07a1f 100644 --- a/formations.cpp +++ b/formations.cpp @@ -37,7 +37,7 @@ QVariant FormationsModel::data(const QModelIndex &index, int role) const if (index.column() == 0) { if (index.row() == 0) { return QString::fromUtf8("(None/unknown)"); - } else if (index.row() == formations.size() + 1) { + } else if (index.row() == int(formations.size() + 1)) { return QString::fromUtf8("Add new…"); } else { return QString::fromUtf8(formations[index.row() - 1].name);