summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-02-21 19:32:32 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-02-21 19:32:32 -0600
commit9dbac137ef235915d25142c4285e68925528eccc (patch)
tree32d7096750718e1430ae26352a0685878638a11e
parent277e0ffdedddddb0dc823854f30433dd412303ce (diff)
Limit the download file description to 4096 characters
The description is limited to 255 characters on the Nexus so this is mostly protecting against invalid data.
-rw-r--r--src/downloadlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp
index 922de748..765ee646 100644
--- a/src/downloadlist.cpp
+++ b/src/downloadlist.cpp
@@ -133,7 +133,7 @@ QVariant DownloadList::data(const QModelIndex &index, int role) const
text += tr("Information missing, please select \"Query Info\" from the context menu to re-retrieve.");
} else {
const MOBase::ModRepositoryFileInfo *info = m_Manager->getFileInfo(index.row());
- return QString("%1 (ID %2) %3<br><span>%4</span>").arg(info->modName).arg(m_Manager->getModID(index.row())).arg(info->version.canonicalString()).arg(info->description);
+ return QString("%1 (ID %2) %3<br><span>%4</span>").arg(info->modName).arg(m_Manager->getModID(index.row())).arg(info->version.canonicalString()).arg(info->description.chopped(4096));
}
return text;
}