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:
|
ubuntu18:
|
||||||
image: symless/ubuntu-sudo:18.04
|
image: symless/ubuntu-sudo:18.04
|
||||||
ubuntu19:
|
ubuntu19:
|
||||||
image: symless/ubuntu-sudo:19.04
|
image: symless/ubuntu-sudo:19.10
|
||||||
|
|
||||||
container: $[ variables['image'] ]
|
container: $[ variables['image'] ]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -460,7 +460,7 @@ void MainWindow::appendLogRaw(const QString& text)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pLogOutput->append(line);
|
m_pLogOutput->appendPlainText(line);
|
||||||
updateFromLogLine(line);
|
updateFromLogLine(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -439,7 +439,7 @@
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTextEdit" name="m_pLogOutput">
|
<widget class="QPlainTextEdit" name="m_pLogOutput">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
|
@ -458,11 +458,14 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="lineWrapMode">
|
<property name="lineWrapMode">
|
||||||
<enum>QTextEdit::NoWrap</enum>
|
<enum>QPlainTextEdit::NoWrap</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximumBlockCount">
|
||||||
|
<number>10000</number>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue