Merge pull request #6664 from symless/issue-6663-clear-log

Limited the log in the GUI to 10,000 lines to prevent RAM hogging
This commit is contained in:
Jnewbon 2020-04-20 13:52:13 +01:00 committed by GitHub
commit 0e76ba898a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -34,7 +34,7 @@ jobs:
ubuntu18:
image: symless/ubuntu-sudo:18.04
ubuntu19:
image: symless/ubuntu-sudo:19.04
image: symless/ubuntu-sudo:19.10
container: $[ variables['image'] ]

View file

@ -460,7 +460,7 @@ void MainWindow::appendLogRaw(const QString& text)
continue;
}
m_pLogOutput->append(line);
m_pLogOutput->appendPlainText(line);
updateFromLogLine(line);
}
}

View file

@ -439,7 +439,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTextEdit" name="m_pLogOutput">
<widget class="QPlainTextEdit" name="m_pLogOutput">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@ -458,11 +458,14 @@
<bool>false</bool>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
<enum>QPlainTextEdit::NoWrap</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="maximumBlockCount">
<number>10000</number>
</property>
</widget>
</item>
</layout>