summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2018-12-29 23:52:18 +0100
committerAl <gabriel.cortesi@outlook.com>2018-12-29 23:52:18 +0100
commit7f0844bdd498ab3176fc79f24d9217d1c03d7e4c (patch)
treef82db79351e64faa3f197f59a81a943400e9afd5
parent87c6b019bc3fa346fc1456b99713d4c1b01cf9cd (diff)
Changed name limit to 60 instead of 100 since it was too long
-rw-r--r--src/downloadlistwidgetcompact.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloadlistwidgetcompact.cpp b/src/downloadlistwidgetcompact.cpp
index 644578de..b534b95b 100644
--- a/src/downloadlistwidgetcompact.cpp
+++ b/src/downloadlistwidgetcompact.cpp
@@ -119,8 +119,8 @@ void DownloadListWidgetCompactDelegate::paintPendingDownload(int downloadIndex)
void DownloadListWidgetCompactDelegate::paintRegularDownload(int downloadIndex) const
{
QString name = m_MetaDisplay ? m_Manager->getDisplayName(downloadIndex) : m_Manager->getFileName(downloadIndex);
- if (name.length() > 100) {
- name.truncate(100);
+ if (name.length() > 60) {
+ name.truncate(60);
name.append("...");
}
m_NameLabel->setText(name);