Skip to content

Commit

Permalink
fix #515 and ensure that a changed objective is always set
Browse files Browse the repository at this point in the history
  • Loading branch information
axelvonkamp committed Jul 1, 2024
1 parent aa147e3 commit 8ca338c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cnapy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def __init__(self, parent, wordlist, check=True, is_constr=False, reject_empty_s
self.setObjectName("EditField")
self.check = check
self.is_constr = is_constr
self.is_valid = not reject_empty_string
self.reject_empty_string = reject_empty_string
self.is_valid = None

def set_wordlist(self, wordlist, replace_completer_model=True):
self.wordlist = wordlist
Expand All @@ -157,6 +157,7 @@ def text_changed(self, text):
if prefix != '':
self.completer.setCompletionPrefix(prefix)
self.completer.complete()
self.setModified(True) # not sure why this is not already implicitly set to True
self.check_text(False)

def complete_text(self, text):
Expand Down

0 comments on commit 8ca338c

Please sign in to comment.