Skip to content

Commit

Permalink
Closes Issue #212: Bug: When the same task in the list and you're edi…
Browse files Browse the repository at this point in the history
…t one of them. Now when a user successfully deletes a task.

If in edit mode, and the task being edited is deleted, exit out of editing mode. If the user goes back to the text box and hits Enter, a new task is created with whatever text is in the text box.
  • Loading branch information
mjdescy committed Feb 18, 2015
1 parent 0429925 commit 1037b38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,11 @@ public void DeleteTasks()
return;
}

if (_window.lbTasks.SelectedItems.Contains(_updating))
{
_updating = null;
}

GetSelectedTasks();

DisableFileChangeObserver();
Expand Down

0 comments on commit 1037b38

Please sign in to comment.