Some minor tweaks to the session log filter logic

This commit is contained in:
Veronica K. B. Olsen committed 2020-06-27 17:00:41 +02:00
1 parent 91b2e1e57e
commit e6a8488e08
2 files changed
+10 -9

No files matched your search

+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: