mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
GTextEditor: Add assertion that did_change() isn't called in readonly mode.
This commit is contained in:
@@ -1014,6 +1014,7 @@ void GTextEditor::leave_event(CEvent&)
|
||||
|
||||
void GTextEditor::did_change()
|
||||
{
|
||||
ASSERT(!is_readonly());
|
||||
update_content_size();
|
||||
if (!m_have_pending_change_notification) {
|
||||
m_have_pending_change_notification = true;
|
||||
|
||||
Reference in New Issue
Block a user