mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-08 18:31:35 +01:00
* Check browse-mode before checking readonly on TDataset.edit
git-svn-id: trunk@5383 -
This commit is contained in:
parent
41c23b8904
commit
ee2d2ac48e
@ -1380,6 +1380,7 @@ end;
|
||||
Procedure TDataset.Edit;
|
||||
|
||||
begin
|
||||
CheckBrowseMode;
|
||||
If Not CanModify then
|
||||
DatabaseError(SDatasetReadOnly,Self);
|
||||
If State in [dsedit,dsinsert] then exit;
|
||||
@ -1388,7 +1389,6 @@ begin
|
||||
Append;
|
||||
Exit;
|
||||
end;
|
||||
CheckBrowseMode;
|
||||
DoBeforeEdit;
|
||||
If Not TryDoing(@InternalEdit,OnEditError) then
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user