mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
Prevent log window buffer from filling up (Closes #929673)
This commit is contained in:
parent
58603451b4
commit
5e48708920
@ -64,7 +64,7 @@ void LogListWidget::keyPressEvent(QKeyEvent *event)
|
||||
|
||||
void LogListWidget::appendLine(const QString &line)
|
||||
{
|
||||
QListWidgetItem *item = new QListWidgetItem(this);
|
||||
QListWidgetItem *item = new QListWidgetItem;
|
||||
// We need to use QLabel here to support rich text
|
||||
QLabel *lbl = new QLabel(line);
|
||||
lbl->setContentsMargins(4, 2, 4, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user