From d9cc013813a2a360a9518ecfd3b2e0bb0596d86a Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 22 Sep 2020 21:21:45 +0200 Subject: Change modId() to nexusId(). --- src/modlistsortproxy.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modlistsortproxy.cpp') diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index f1bc6c13..ca0f3bb1 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -214,8 +214,8 @@ bool ModListSortProxy::lessThan(const QModelIndex &left, } } break; case ModList::COL_MODID: { - if (leftMod->modId() != rightMod->modId()) - lt = leftMod->modId() < rightMod->modId(); + if (leftMod->nexusId() != rightMod->nexusId()) + lt = leftMod->nexusId() < rightMod->nexusId(); } break; case ModList::COL_VERSION: { if (leftMod->version() != rightMod->version()) @@ -425,7 +425,7 @@ bool ModListSortProxy::categoryMatchesMod( return false; } - b = (info->modId() > 0); + b = (info->nexusId() > 0); break; } @@ -531,7 +531,7 @@ bool ModListSortProxy::filterMatchesMod(ModInfo::Ptr info, bool enabled) const bool ok; int filterID = currentKeyword.toInt(&ok); if (ok) { - int modID = info->modId(); + int modID = info->nexusId(); while (modID > 0) { if (modID == filterID) { foundKeyword = true; -- cgit v1.3.1