Skip to content

Commit

Permalink
Merge pull request #6316 from ivangrek/fix-6308
Browse files Browse the repository at this point in the history
Disable the display of notes Dialog after Ctrl+Shift+N for artificial…
  • Loading branch information
RussKie committed Mar 3, 2019
2 parents 58e6e96 + b4fee9c commit f63c836
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion GitUI/CommandsDialogs/FormBrowse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,14 @@ internal Keys GetShortcutKeys(Command cmd)

private void AddNotes()
{
Module.EditNotes(RevisionGrid.GetSelectedRevisions().FirstOrDefault()?.ObjectId);
var objectId = RevisionGrid.GetSelectedRevisions().FirstOrDefault()?.ObjectId;

if (objectId == null || objectId.IsArtificial)
{
return;
}

Module.EditNotes(objectId);
FillCommitInfo();
}

Expand Down

0 comments on commit f63c836

Please sign in to comment.