Hack.
This commit is contained in:
parent
e422eff959
commit
77de2d1e54
@ -122,12 +122,15 @@ void ConsoleWindow::write(QString data, MessageLevel::Enum mode)
|
|||||||
if (data.endsWith('\n'))
|
if (data.endsWith('\n'))
|
||||||
data = data.left(data.length() - 1);
|
data = data.left(data.length() - 1);
|
||||||
QStringList paragraphs = data.split('\n');
|
QStringList paragraphs = data.split('\n');
|
||||||
|
QStringList filtered;
|
||||||
for (QString ¶graph : paragraphs)
|
for (QString ¶graph : paragraphs)
|
||||||
{
|
{
|
||||||
paragraph = paragraph.trimmed();
|
// Quick hack for
|
||||||
|
if(paragraph.contains("Detected an attempt by a mod null to perform game activity during mod construction"))
|
||||||
|
continue;
|
||||||
|
filtered.append(paragraph.trimmed());
|
||||||
}
|
}
|
||||||
|
QListIterator<QString> iter(filtered);
|
||||||
QListIterator<QString> iter(paragraphs);
|
|
||||||
if (mode == MessageLevel::MultiMC)
|
if (mode == MessageLevel::MultiMC)
|
||||||
while (iter.hasNext())
|
while (iter.hasNext())
|
||||||
writeColor(iter.next(), "blue", 0);
|
writeColor(iter.next(), "blue", 0);
|
||||||
|
@ -49,13 +49,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="btnScreenshots">
|
|
||||||
<property name="text">
|
|
||||||
<string>Manage Screenshots</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
Loading…
Reference in New Issue
Block a user