#6663 Added limit to the log view of 10,000 lines in the GUI to prevent RAM hogging

This commit is contained in:
Jamie Newbon 2020-04-17 17:52:36 +01:00
parent 8df1c5977b
commit 96b8c74373
2 changed files with 6 additions and 3 deletions

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>