Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Minor fix
  • Loading branch information
0x7c13 committed Jun 11, 2020
1 parent 98ee02a commit 0f67b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Notepads/Core/NotepadsCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ private void Sets_DragItemsCompleted(ListViewBase sender, DragItemsCompletedEven

private async void Sets_SetDraggedOutside(object sender, SetDraggedOutsideEventArgs e)
{
if (Sets.Items?.Count > 1 && e.Set.Content is ITextEditor textEditor)
if (Sets.Items?.Count > 1 && e.Set?.Content is ITextEditor textEditor)
{
// Only allow untitled empty document to be dragged outside for now
if (!textEditor.IsModified && textEditor.EditingFile == null)
Expand Down

0 comments on commit 0f67b5f

Please sign in to comment.