File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1520,7 +1520,9 @@ procedure FixVT(VT: TVirtualStringTree; IsResultGrid: Boolean=False);
15201520 VT.OnStartOperation := Mainform.AnyGridStartOperation;
15211521 VT.OnEndOperation := Mainform.AnyGridEndOperation;
15221522 VT.BorderStyle := bsNone; // Cosmetic
1523- VT.OnContextPopup := MainForm.AnyGridContextPopup;
1523+ // Some trees have their own OnContextMenu logic set at design time:
1524+ if not Assigned(VT.OnContextPopup) then
1525+ VT.OnContextPopup := MainForm.AnyGridContextPopup;
15241526end ;
15251527
15261528
Original file line number Diff line number Diff line change @@ -2136,7 +2136,6 @@ object MainForm: TMainForm
21362136 OnBeforePaint = ListTablesBeforePaint
21372137 OnChange = ListTablesChange
21382138 OnCompareNodes = AnyGridCompareNodes
2139- OnContextPopup = AnyGridContextPopup
21402139 OnDblClick = ListTablesDblClick
21412140 OnEditing = ListTablesEditing
21422141 OnGetText = ListTablesGetText
You can’t perform that action at this time.
0 commit comments