mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
fix: possible crash when grid context menu opens
This commit is contained in:
@@ -3655,7 +3655,7 @@ begin
|
||||
// Enable or disable ImageView action
|
||||
Grid := ActiveGrid;
|
||||
(Sender as TAction).Enabled := (Grid <> nil)
|
||||
and (Grid.FocusedColumn <> NoColumn)
|
||||
and (Grid.FocusedColumn-1 <> NoColumn)
|
||||
and (GridResult(Grid).DataType(Grid.FocusedColumn-1).Category = dtcBinary)
|
||||
end;
|
||||
|
||||
@@ -10683,6 +10683,8 @@ begin
|
||||
// Header click disabled
|
||||
if not AppSettings.ReadBool(asColumnHeaderClick) then
|
||||
Exit;
|
||||
if HitInfo.Column = NoColumn then
|
||||
Exit;
|
||||
ColName := Sender.Columns[HitInfo.Column].Text;
|
||||
// Add a new order column after a columns title has been clicked
|
||||
// Check if order column is already existant
|
||||
|
||||
Reference in New Issue
Block a user