From 291824b31b2cb3ee564b794ef424c87f38086a4d Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 14 Apr 2024 16:31:50 -0700 Subject: [PATCH] fixSelectedTracking by adding comments added a bug where the selected wont track when a comment is changed. this will limit the hash used to locate in list --- potato.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/potato.py b/potato.py index 8b16230..c97d49d 100644 --- a/potato.py +++ b/potato.py @@ -186,7 +186,8 @@ def showspots(self): f"{i['comments']}" ) self.listWidget.addItem(spot) - if spot[5:] == self.lastclicked[5:]: + + if spot[5:35] == self.lastclicked[5:35]: founditem = self.listWidget.findItems( spot[5:], QtCore.Qt.MatchFlag.MatchContains, # pylint: disable=no-member