#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; continue;
} }
m_pLogOutput->append(line); m_pLogOutput->appendPlainText(line);
updateFromLogLine(line); updateFromLogLine(line);
} }
} }

View file

@ -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>