mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 20:17:42 +00:00
GTextEditor: Add assertion that did_change() isn't called in readonly mode.
This commit is contained in:
parent
6a0011dcea
commit
2cebf78fad
1 changed files with 1 additions and 0 deletions
|
@ -1014,6 +1014,7 @@ void GTextEditor::leave_event(CEvent&)
|
||||||
|
|
||||||
void GTextEditor::did_change()
|
void GTextEditor::did_change()
|
||||||
{
|
{
|
||||||
|
ASSERT(!is_readonly());
|
||||||
update_content_size();
|
update_content_size();
|
||||||
if (!m_have_pending_change_notification) {
|
if (!m_have_pending_change_notification) {
|
||||||
m_have_pending_change_notification = true;
|
m_have_pending_change_notification = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue