Fix NRE
This commit is contained in:
parent
eed3d84517
commit
d165dfbeb5
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ namespace LibationAvalonia.Dialogs
|
|||
public void ReplacementGrid_KeyDown(object sender, Avalonia.Input.KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == Avalonia.Input.Key.Delete
|
||||
&& replacementGrid.SelectedItem is ReplacementsExt repl
|
||||
&& ((DataGrid)sender).SelectedItem is ReplacementsExt repl
|
||||
&& !repl.Mandatory
|
||||
&& !repl.IsDefault)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue