Skip to content

Commit

Permalink
Grid popup text editor: Trigger onchange event explicitly, as this is…
Browse files Browse the repository at this point in the history
… not done implicitly when applying an empty string. Closes #132.
  • Loading branch information
ansgarbecker committed Feb 18, 2018
1 parent 4bde1c2 commit 76230df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/texteditor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ procedure TfrmTextEditor.SetText(text: String);
SelectLineBreaks(Detected);
FmemoText.Text := text;
FmemoText.SelectAll;
// Trigger change event, which is not fired when text is empty. See #132.
FmemoText.OnChange(FmemoText);
Modified := False;
end;

Expand Down

0 comments on commit 76230df

Please sign in to comment.