Some minor tweaks to the session log filter logic

This commit is contained in:
Veronica K. B. Olsen
2020-06-27 17:00:41 +02:00
parent 91b2e1e57e
commit e6a8488e08
2 changed files with 10 additions and 9 deletions
+6 -5
View File
@@ -497,16 +497,17 @@ class GuiSessionLog(QDialog):
wcTotal += wcNotes
dwTotal = wcTotal - pcTotal
if isFirst:
# Subtract the offset from the first list entry
dwTotal -= self.wordOffset
dwTotal = max(dwTotal, 0) # But don't go negative
isFirst = False
if hideZeros and dwTotal == 0:
continue
if hideNegative and dwTotal < 0:
continue
if isFirst:
# Subtract the offset from the first list entry
dwTotal -= self.wordOffset
isFirst = False
if groupByDay:
sStart = dStart.strftime(nwConst.dStampFmt)
else: