Do not remember logs from old sessions indefinitely
commitc09310406b0aae22fb488f7ac4965cb0c75d311d
authorJan Kundrát <jkt@flaska.net>
Mon, 6 Oct 2014 19:53:30 +0000 (6 21:53 +0200)
committerJan Kundrát <jkt@flaska.net>
Mon, 6 Oct 2014 19:53:30 +0000 (6 21:53 +0200)
tree1ecd5eb93396dee78977275681ffc0d37b273c45
parentc0fa5d1df4bb0eca52cdb0a27b6f49550bbc9065
Do not remember logs from old sessions indefinitely

Connection logs are typically most important for the current session, for that
special magic connection#0 which is the default log, and for a couple of the
recently closed connections to help with eventual troubleshooting. Tracking all
the past ones, however, doesn't make much sense and consumes a lot of resources
when the whole widget suddenly gets shown.

v2: Use a timer-based approach, not random skipping as per Thomas' suggestion.

Change-Id: Id98c390e0a82e7896fa4866ebb5c8372ef152b4f
src/Gui/ProtocolLoggerWidget.cpp
src/Gui/ProtocolLoggerWidget.h
src/Gui/Window.cpp