Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #515 and ensure that a changed objective is always set #518

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading