Prevent the sync protocol widget from over-using memory
authorJocelyn Turcotte <jturcotte@woboq.com>
Fri, 17 Jun 2016 17:06:39 +0000 (19:06 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Fri, 17 Jun 2016 17:20:53 +0000 (19:20 +0200)
commit87e3553c850348721bd371b32d72bfbb55b58586
tree2cce801b20168a99c0510ddc4073866548561937
parent6f3aaecb783c5d8b9dc82cb9752ec4d0372a3b9c
Prevent the sync protocol widget from over-using memory

During propagation, we create a line for each file, taking memory, but
we delete all lines passed 2000 right at the beginning of the next sync.
Since the user has little chances of being able to read past those 2000
lines in the log, we might as well keep it capped at 2000 also during
propagation to prevent it from eating memory.
src/gui/protocolwidget.cpp