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:
commit
0e76ba898a
3 changed files with 7 additions and 4 deletions
|
|
@ -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'] ]
|
||||
|
||||
|
|
|
|||
|
|
@ -460,7 +460,7 @@ void MainWindow::appendLogRaw(const QString& text)
|
|||
continue;
|
||||
}
|
||||
|
||||
m_pLogOutput->append(line);
|
||||
m_pLogOutput->appendPlainText(line);
|
||||
updateFromLogLine(line);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue