Commit 9b148913 authored by Michael Büsch's avatar Michael Büsch

gui: Do not prune stats, if not running

Signed-off-by: Michael Büsch's avatarMichael Buesch <>
parent a7497c72
......@@ -546,6 +546,8 @@ class EditWidget(QPlainTextEdit):
self.__cpuStatsStamp += 1
def __pruneInvisibleCpuStats(self):
if self.__runStateCopy == CpuWidget.STATE_STOP:
firstLine, lastLine = self.getVisibleLineRange()
for line, stats in self.__lineCpuStats.items():
if line < firstLine or line > lastLine:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment