Skip to content

Commit

Permalink
Links in disabled rows should not run the associated actions (e.g. Sy…
Browse files Browse the repository at this point in the history
…ncWithCdnAction).

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
  • Loading branch information
kc284 committed Nov 2, 2023
1 parent 2d08365 commit 39a4f56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XenAdmin/Controls/PDSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ private void RunCellCommandOrAction(DataGridViewCell cell)
{
if (cell == null)
return;
if (cell.OwningRow is DataGridViewExRow row && !row.Enabled)
return;

if (cell.Tag is Command command)
command.Run();
Expand Down

0 comments on commit 39a4f56

Please sign in to comment.