Skip to content

Commit ea9c4d0

Browse files
committed
fix: mouse click in edited row calls save action although focus did not change
Refs #2475
1 parent 699fde0 commit ea9c4d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/main.pas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11608,7 +11608,10 @@ procedure TMainForm.AnyGridMouseUp(Sender: TObject; Button: TMouseButton;
1160811608
Grid := Sender as TVirtualStringTree;
1160911609
if not Assigned(Grid.FocusedNode) then
1161011610
Exit;
11611-
Grid.GetHitTestInfoAt(X, Y, False, Hit);
11611+
// Exit early for non-result-grids like ListTables
11612+
if Grid <> ActiveGrid then
11613+
Exit;
11614+
Grid.GetHitTestInfoAt(X, Y, True, Hit);
1161211615
if (Hit.HitNode = nil) or (Hit.HitColumn = NoColumn) or (Hit.HitColumn = InvalidColumn) then begin
1161311616
Results := GridResult(Grid);
1161411617
if Results.Modified then begin

0 commit comments

Comments
 (0)