diff --git a/CodeHub.Core/ViewModels/Source/SourceViewModel.cs b/CodeHub.Core/ViewModels/Source/SourceViewModel.cs index bc7b4749..2879b698 100755 --- a/CodeHub.Core/ViewModels/Source/SourceViewModel.cs +++ b/CodeHub.Core/ViewModels/Source/SourceViewModel.cs @@ -51,7 +51,7 @@ protected override async Task Load(bool forceCacheInvalidation) public ICommand GoToEditCommand { - get { return new MvxCommand(() => ShowViewModel(new EditSourceViewModel.NavObject { Path = _path, Branch = Branch, Username = Username, Repository = Repository }), () => TrueBranch); } + get { return new MvxCommand(() => ShowViewModel(new EditSourceViewModel.NavObject { Path = _path, Branch = Branch, Username = Username, Repository = Repository }), () => ContentPath != null && TrueBranch); } } public void Init(NavObject navObject)