Skip to content

Commit 902d49b

Browse files
committed
Use getFormattedSize for disk quota on list history
1 parent 76fb52e commit 902d49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/qtTeamTalk/chattextlist.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void ChatTextList::joinedChannel(int channelid)
131131
topicItem->setData(Qt::UserRole + 3, tr("Topic: %1").arg(_Q(chan.szTopic)));
132132
addItem(topicItem);
133133

134-
QListWidgetItem* quotaItem = new QListWidgetItem(tr("Disk quota: %1 KBytes").arg(chan.nDiskQuota/1024));
134+
QListWidgetItem* quotaItem = new QListWidgetItem(tr("Disk quota: %1").arg(getFormattedSize(chan.nDiskQuota)));
135135
quotaItem->setForeground(Qt::darkRed);
136136
quotaItem->setData(Qt::UserRole + 1, dt);
137137
quotaItem->setData(Qt::UserRole + 2, tr("Channel"));

0 commit comments

Comments
 (0)