]> git.sesse.net Git - pkanalytics/commitdiff
Small typo.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 29 May 2023 13:03:30 +0000 (15:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 29 May 2023 13:03:30 +0000 (15:03 +0200)
events.cpp

index bb915b273b072ef4c4e5ec5eb9c348ac4d562f6b..1c7227e7e457207a6417cb45f7b18b3158f98bec 100644 (file)
@@ -49,8 +49,8 @@ QVariant EventsModel::data(const QModelIndex &index, int role) const
                        return QString::fromUtf8(p.name + " (" + p.number + ")");
                } else if (formation_id) {
                        auto f_it = formations.find(*formation_id);
-                       const Formation &p = f_it->second;
-                       return QString::fromUtf8(p.name);
+                       const Formation &f = f_it->second;
+                       return QString::fromUtf8(f.name);
                } else {
                        return QVariant();
                }