Skip to content

Commit

Permalink
Do not go to system database if we aren't actually navigating from a …
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
ayende committed Jul 28, 2014
1 parent 8b109a3 commit e2b2926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Raven.Studio/MainPage.xaml.cs
Expand Up @@ -27,7 +27,8 @@ private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
HighlightCurrentPage(e.Uri);

// update the current database here so that back button navigation works correctly with database changes
ApplicationModel.Current.Server.Value.SetCurrentDatabase(new UrlParser(e.Uri.OriginalString));
if (string.IsNullOrEmpty(e.Uri.OriginalString) == false)
ApplicationModel.Current.Server.Value.SetCurrentDatabase(new UrlParser(e.Uri.OriginalString));

GC.Collect();
}
Expand Down

0 comments on commit e2b2926

Please sign in to comment.