diff options
Diffstat (limited to 'logic/ModList.cpp')
-rw-r--r-- | logic/ModList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/ModList.cpp b/logic/ModList.cpp index f7770920..3382a6ef 100644 --- a/logic/ModList.cpp +++ b/logic/ModList.cpp @@ -411,7 +411,7 @@ QVariant ModList::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: - switch (index.column()) + switch (column) { case NameColumn: return mods[row].name(); @@ -426,7 +426,7 @@ QVariant ModList::data(const QModelIndex &index, int role) const return mods[row].mmc_id(); case Qt::CheckStateRole: - switch (index.column()) + switch (column) { case ActiveColumn: return mods[row].enabled() ? Qt::Checked : Qt::Unchecked; |