Paste to DBGrid by mouse middle button in X11 is ignored
Original Reporter info from Mantis: Petr-K
-
Reporter name:
Original Reporter info from Mantis: Petr-K
- Reporter name:
Description:
Because value of TCustomDBGrid.FEditingColumn is set only when EditorIsReadOnly is called by TCustomGrid.EditorKeyPress event. TCustomDBGrid.UpdateData then does not store value to dataset.
Following patch solved this issue to me:
--- dbgrids.pas (revision 39991)
+++ dbgrids.pas (working copy)
@@ -2471,7 +2475,8 @@
procedure TCustomDBGrid.SetEditText(ACol, ARow: Longint; const Value: string);
begin
- FTempText := Value;
+ if not EditorIsReadOnly then
+ FTempText := Value;
end;
Steps to reproduce:
Set table row to edit mode, enter to DBGrid cell (Inplace editor is showed),
paste text from PRIMARY clipboard by middle button and post the row.
Data were not chaged.
Mantis conversion info:
- Mantis ID: 24310
- OS: Linux
- Build: Revision #39991 (closed)
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 41067 (#342ff362)
- Target version: 1.2.0
- LazTarget: 1.2