Skip to content
Browse files

Check if (old) grid result is in a valid state before checking for an…

… url. Closes #759
  • Loading branch information...
ansgarbecker committed Oct 1, 2019
1 parent f88e521 commit fd03a11bdf07042c1013bcc78567fc3de2de827f
Showing with 1 addition and 0 deletions.
  1. +1 −0 source/main.pas
@@ -5789,6 +5789,7 @@ procedure TMainForm.ValidateControls(Sender: TObject);
actGridEditFunction.Enabled := HasConnection and inDataOrQueryTabNotEmpty and Assigned(Grid.FocusedNode);
actDataPreview.Enabled := HasConnection and inDataOrQueryTabNotEmpty and Assigned(Grid.FocusedNode);
actDataOpenUrl.Enabled := HasConnection and inDataOrQueryTabNotEmpty and Assigned(Grid.FocusedNode)
and (Results <> nil) // see issue #759
and ExecRegExpr('^https?://[^\s]+$', Grid.Text[Grid.FocusedNode, Grid.FocusedColumn]);
actUnixTimestampColumn.Enabled := HasConnection and inDataTab and EnableTimestamp;
actUnixTimestampColumn.Checked := inDataTab and HandleUnixTimestampColumn(Grid, Grid.FocusedColumn);

0 comments on commit fd03a11

Please sign in to comment.
You can’t perform that action at this time.