Skip to content

Commit

Permalink
Fixed TimeSuggestionPopup (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 b7fab7e commit 564a488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public EntryDialog(final CalendarCell cell) {

//construct a TimeSuggestions suggestion popup,
//and connect it to the start and stop line edits
TimeSuggestionPopup suggestions = new TimeSuggestionPopup(getContents());
TimeSuggestionPopup suggestions = new TimeSuggestionPopup();
suggestions.forEdit(start);
suggestions.forEdit(stop);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class TimeSuggestionPopup extends WSuggestionPopup {
timeOptions.appendReplacedText = "";
}

public TimeSuggestionPopup(WContainerWidget parent) {
public TimeSuggestionPopup() {
super(WSuggestionPopup.generateMatcherJS(timeOptions),
WSuggestionPopup.generateReplacerJS(timeOptions), parent);
WSuggestionPopup.generateReplacerJS(timeOptions));

for (int i = 0; i < 24; i++) {
String h = String.format("%02d", i);
Expand Down

0 comments on commit 564a488

Please sign in to comment.