diff options
author | therzok <marius.ungureanu@xamarin.com> | 2017-10-17 18:32:51 +0300 |
---|---|---|
committer | Marius Ungureanu <teromario@yahoo.com> | 2017-10-27 14:43:43 +0300 |
commit | f7d4219f64a10016c97967174d7dd4e891b341cb (patch) | |
tree | a4d070eb39e03ea1c4617888c669fc77bf7dcdef /main/src/addins/VersionControl | |
parent | 23119db6d6d734b97366609e0ac1bf1d374362e5 (diff) |
CID167749 - Fixed previous commit sellection in the revision.
Before, if GetPrevious returned null, we would not do a blame before, now we blame to the first revision.
Diffstat (limited to 'main/src/addins/VersionControl')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/BlameWidget.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/BlameWidget.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/BlameWidget.cs index 21899e06ea..f2fba60f30 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/BlameWidget.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/BlameWidget.cs @@ -517,14 +517,7 @@ namespace MonoDevelop.VersionControl.Views protected void OnShowBlameBefore () { var current = menuAnnotation?.Revision; - Revision rev; - - if (current == null) { - rev = widget.info.History.FirstOrDefault (); - } else { - rev = current?.GetPrevious (); - } - + Revision rev = current?.GetPrevious () ?? widget.info.History.FirstOrDefault (); if (rev == null) return; |