Fix NRE
This commit is contained in:
parent
eed3d84517
commit
d165dfbeb5
@ -70,7 +70,7 @@ namespace LibationAvalonia.Dialogs
|
|||||||
public void ReplacementGrid_KeyDown(object sender, Avalonia.Input.KeyEventArgs e)
|
public void ReplacementGrid_KeyDown(object sender, Avalonia.Input.KeyEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Key == Avalonia.Input.Key.Delete
|
if (e.Key == Avalonia.Input.Key.Delete
|
||||||
&& replacementGrid.SelectedItem is ReplacementsExt repl
|
&& ((DataGrid)sender).SelectedItem is ReplacementsExt repl
|
||||||
&& !repl.Mandatory
|
&& !repl.Mandatory
|
||||||
&& !repl.IsDefault)
|
&& !repl.IsDefault)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user