From ca40e7237b5e09ae94ae58d3fb7cb43f77553039 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Sat, 25 Oct 2014 08:10:07 -0400 Subject: [PATCH] Fix crash loading feed window --- Application/Options/FeedWindow.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Application/Options/FeedWindow.xaml.cs b/Application/Options/FeedWindow.xaml.cs index 266904c..87d588b 100644 --- a/Application/Options/FeedWindow.xaml.cs +++ b/Application/Options/FeedWindow.xaml.cs @@ -1,4 +1,5 @@ -using Common.Wpf.Extensions; +using System.Data.Entity; +using Common.Wpf.Extensions; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -16,8 +17,10 @@ namespace FeedCenter.Options public bool? Display(FeedCenterEntities database, Feed feed, Window owner) { + database.Categories.Load(); + // Bind the category combo box - categoryComboBox.ItemsSource = database.Categories; + categoryComboBox.ItemsSource = database.Categories.Local; // Set the data context DataContext = feed;