summaryrefslogtreecommitdiffstats
path: root/application/pages
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-02-08 20:01:42 +0100
committerPetr Mrázek <peterix@gmail.com>2017-02-08 20:01:42 +0100
commit8bbaab334c5116be4c180c3eac93c4acc844f4bd (patch)
treeddb2796f0cfe574bec2132e98eff675d2ccccb59 /application/pages
parent155de307bc6ef1a42226831550680110e00dc8c3 (diff)
downloadMultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar
MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar.gz
MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar.lz
MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.tar.xz
MultiMC-8bbaab334c5116be4c180c3eac93c4acc844f4bd.zip
NOISSUE set line limit and overflow behaviour even for hidden console
Diffstat (limited to 'application/pages')
-rw-r--r--application/pages/LogPage.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/application/pages/LogPage.cpp b/application/pages/LogPage.cpp
index 31cf9ecd..75e1df7d 100644
--- a/application/pages/LogPage.cpp
+++ b/application/pages/LogPage.cpp
@@ -168,19 +168,6 @@ void LogPage::on_InstanceLaunchTask_changed(std::shared_ptr<LaunchTask> proc)
if(m_process)
{
m_model = proc->getLogModel();
- auto lineSetting = MMC->settings()->getSetting("ConsoleMaxLines");
- bool conversionOk = false;
- int maxLines = lineSetting->get().toInt(&conversionOk);
- if(!conversionOk)
- {
- maxLines = lineSetting->defValue().toInt();
- qWarning() << "ConsoleMaxLines has nonsensical value, defaulting to" << maxLines;
- }
- m_model->setMaxLines(maxLines);
- m_model->setStopOnOverflow(MMC->settings()->get("ConsoleOverflowStop").toBool());
- m_model->setOverflowMessage(tr("MultiMC stopped watching the game log because the log length surpassed %1 lines.\n"
- "You may have to fix your mods because the game is still logging to files and"
- " likely wasting harddrive space at an alarming rate!").arg(maxLines));
m_proxy->setSourceModel(m_model.get());
}
else