diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-06-29 13:11:13 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-29 13:11:13 +0200 |
commit | 77de2d1e5472051cd05857dc4304bdc9ad77e36d (patch) | |
tree | 61db7ab4bf470c7bd06dba251e2158ef6d3437e6 | |
parent | e422eff95909ca21f4e0c25edccfbced9ab49761 (diff) | |
download | MultiMC-77de2d1e5472051cd05857dc4304bdc9ad77e36d.tar MultiMC-77de2d1e5472051cd05857dc4304bdc9ad77e36d.tar.gz MultiMC-77de2d1e5472051cd05857dc4304bdc9ad77e36d.tar.lz MultiMC-77de2d1e5472051cd05857dc4304bdc9ad77e36d.tar.xz MultiMC-77de2d1e5472051cd05857dc4304bdc9ad77e36d.zip |
Hack.
-rw-r--r-- | gui/ConsoleWindow.cpp | 9 | ||||
-rw-r--r-- | gui/ConsoleWindow.ui | 7 |
2 files changed, 6 insertions, 10 deletions
diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp index 26bd47f8..692ae886 100644 --- a/gui/ConsoleWindow.cpp +++ b/gui/ConsoleWindow.cpp @@ -122,12 +122,15 @@ void ConsoleWindow::write(QString data, MessageLevel::Enum mode) if (data.endsWith('\n')) data = data.left(data.length() - 1); QStringList paragraphs = data.split('\n'); + QStringList filtered; 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(paragraphs); + QListIterator<QString> iter(filtered); if (mode == MessageLevel::MultiMC) while (iter.hasNext()) writeColor(iter.next(), "blue", 0); diff --git a/gui/ConsoleWindow.ui b/gui/ConsoleWindow.ui index 344cf74d..c2307ecc 100644 --- a/gui/ConsoleWindow.ui +++ b/gui/ConsoleWindow.ui @@ -50,13 +50,6 @@ </widget> </item> <item> - <widget class="QPushButton" name="btnScreenshots"> - <property name="text"> - <string>Manage Screenshots</string> - </property> - </widget> - </item> - <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> |