this fires when we switch away from an Editor, so don't crash
This commit is contained in:
parent
497b56ec93
commit
c3fc908a68
@ -46,6 +46,9 @@ namespace UniversalEditor.UserInterface.Panels
|
||||
if (lv.SelectedRows.Count == 0)
|
||||
return;
|
||||
|
||||
if (CurrentEditor == null)
|
||||
return;
|
||||
|
||||
EditorDocumentExplorerNode node = lv.SelectedRows[0].GetExtraData<EditorDocumentExplorerNode>("node");
|
||||
CurrentEditor.OnDocumentExplorerSelectionChanged(new EditorDocumentExplorerSelectionChangedEventArgs(node));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user