summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-02-08 01:59:16 +0100
committerPetr Mrázek <peterix@gmail.com>2017-02-08 01:59:16 +0100
commit155de307bc6ef1a42226831550680110e00dc8c3 (patch)
tree10c17716a4abfe97878466b5a5b2002ef2bdaf44
parent2e8d8b60b01dba23f3cada3f0d3e12969d6d44a1 (diff)
downloadMultiMC-155de307bc6ef1a42226831550680110e00dc8c3.tar
MultiMC-155de307bc6ef1a42226831550680110e00dc8c3.tar.gz
MultiMC-155de307bc6ef1a42226831550680110e00dc8c3.tar.lz
MultiMC-155de307bc6ef1a42226831550680110e00dc8c3.tar.xz
MultiMC-155de307bc6ef1a42226831550680110e00dc8c3.zip
GH-1802 fix log resize handling
The log could end up with many empty lines because the wrong maximum size was used during the resize.
-rw-r--r--api/logic/launch/LogModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/launch/LogModel.cpp b/api/logic/launch/LogModel.cpp
index 869c00f9..579aa654 100644
--- a/api/logic/launch/LogModel.cpp
+++ b/api/logic/launch/LogModel.cpp
@@ -98,7 +98,7 @@ void LogModel::setMaxLines(int maxLines)
return;
}
// if it all still fits in the buffer, just resize it
- if(m_firstLine + m_numLines < maxLines)
+ if(m_firstLine + m_numLines < m_maxLines)
{
m_maxLines = maxLines;
m_content.resize(maxLines);