diff --git a/SMT/MainWindow.xaml.cs b/SMT/MainWindow.xaml.cs index 3d139b0..aa40800 100644 --- a/SMT/MainWindow.xaml.cs +++ b/SMT/MainWindow.xaml.cs @@ -905,13 +905,13 @@ private void Preferences_MenuItem_Click(object sender, RoutedEventArgs e) } preferencesWindow = new PreferencesWindow(); + preferencesWindow.Closed += PreferencesWindow_Closed; preferencesWindow.Owner = this; preferencesWindow.DataContext = MapConf; preferencesWindow.MapConf = MapConf; preferencesWindow.EM = EVEManager; preferencesWindow.Init(); preferencesWindow.ShowDialog(); - preferencesWindow.Closed += PreferencesWindow_Closed; } private void PreferencesWindow_Closed(object sender, EventArgs e)