summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormg <>2008-06-10 17:31:52 +0000
committermg <>2008-06-10 17:31:52 +0000
commit207bf8c1858a353739bd71abf93284cfc6a8a3df (patch)
tree5d72f078a9d512013dbaa6daf2812f2a391b7a01
parentba44b911f0651e358eed2c91653cc780f564e667 (diff)
Fix https://bugs.launchpad.net/gtimelog/+bug/238505: duplicate choices in the
completion popup when you reload the time log file.
-rwxr-xr-xsrc/gtimelog/gtimelog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtimelog/gtimelog.py b/src/gtimelog/gtimelog.py
index 3d99c88..10aecc9 100755
--- a/src/gtimelog/gtimelog.py
+++ b/src/gtimelog/gtimelog.py
@@ -1042,6 +1042,7 @@ class MainWindow(object):
if not self.have_completion:
return
seen = sets.Set()
+ self.completion_choices.clear()
for entry in self.history:
if entry not in seen:
seen.add(entry)