[GB.QT4.EXT]
* BUG: When the Change event is raised while setting the Editor.Text property, the ReadOnly property now returns the correct value. git-svn-id: svn://localhost/gambas/trunk@4012 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
16f58e0e3f
commit
cc46ceec81
1 changed files with 6 additions and 1 deletions
|
@ -581,11 +581,14 @@ void GDocument::setText(const GString & text)
|
|||
|
||||
readOnly = false;
|
||||
blockUndo = true;
|
||||
|
||||
|
||||
clear();
|
||||
clearUndo();
|
||||
undoLevel++; // Prevent textChanged emission
|
||||
insert(0, 0, text);
|
||||
colorize(0);
|
||||
reset();
|
||||
undoLevel--;
|
||||
|
||||
blockUndo = false;
|
||||
readOnly = oldReadOnly;
|
||||
|
@ -594,6 +597,8 @@ void GDocument::setText(const GString & text)
|
|||
{
|
||||
v->cursorGoto(0, 0, false);
|
||||
}
|
||||
|
||||
emitTextChanged();
|
||||
}
|
||||
|
||||
void GDocument::unsubscribe(GEditor *view)
|
||||
|
|
Loading…
Reference in a new issue