Skip to content

Commit

Permalink
Change for JWt conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
RockinRoel committed Nov 21, 2017
1 parent 6a175bd commit d4d2e88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Wt/WSuggestionPopup.C
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,11 @@ void WSuggestionPopup::doActivate(std::string itemId, std::string editId)
currentItem_ = i;
activated_.emit(i, edit);
if(edit) {
if (Wt::WLineEdit *le = dynamic_cast<Wt::WLineEdit*>(edit)) {
WLineEdit *le = dynamic_cast<WLineEdit*>(edit);
WTextArea *ta = dynamic_cast<WTextArea*>(edit);
if (le) {
le->textInput().emit();
} else if (Wt::WTextArea *ta = dynamic_cast<Wt::WTextArea*>(edit)) {
} else if (ta) {
ta->textInput().emit();
}
edit->changed().emit();
Expand Down

0 comments on commit d4d2e88

Please sign in to comment.