Skip to content

Commit

Permalink
Fixed ContactSuggestions popup widget (WSuggestionPopup has no parent)
Browse files Browse the repository at this point in the history
  • Loading branch information
RockinRoel committed Aug 3, 2020
1 parent e49fb05 commit b7fab7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private void createUi() {
/*
* Addressbook suggestions popup
*/
contactSuggestions_ = new ContactSuggestions(layout_);
contactSuggestions_ = new ContactSuggestions();
contactSuggestions_.forEdit(toEdit_);
contactSuggestions_.forEdit(ccEdit_);
contactSuggestions_.forEdit(bccEdit_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class ContactSuggestions extends WSuggestionPopup {
/**
* Create a new ContactSuggestions popup.
*/
public ContactSuggestions(WContainerWidget parent) {
public ContactSuggestions() {
super(WSuggestionPopup.generateMatcherJS(contactOptions),
WSuggestionPopup.generateReplacerJS(contactOptions), parent);
WSuggestionPopup.generateReplacerJS(contactOptions));
}

/**
Expand All @@ -50,4 +50,4 @@ public void setAddressBook(List<Contact> contacts) {
addSuggestion(contacts.get(i).formatted(), contacts.get(i)
.formatted());
}
}
}

0 comments on commit b7fab7e

Please sign in to comment.