Skip to content

Commit

Permalink
Fix for crash when deleting characters
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBaboonSteve committed Jul 7, 2020
1 parent c1dade3 commit c84b32b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public partial class MainWindow : Window
{
public static MainWindow AppWindow;

public const string SMT_VERSION = "SMT_088";
public const string SMT_VERSION = "SMT_089";


private LogonWindow logonBrowserWindow;
Expand All @@ -52,7 +52,7 @@ public MainWindow()

InitializeComponent();

Title = "SMT (Pathos' Crash Test Dummy : " + SMT_VERSION + ")";
Title = "SMT (Pathos, Crashier Test Dummy : " + SMT_VERSION + ")";

CheckGitHubVersion();

Expand Down Expand Up @@ -703,8 +703,6 @@ private void CurrentActiveCharacterCombo_Selected(object sender, SelectionChange
RegionsViewUC.ActiveCharacter = null;
RegionUC.ActiveCharacter = null;
FleetMembersList.ItemsSource = null;
CollectionViewSource.GetDefaultView(FleetMembersList.ItemsSource).Refresh();

RegionUC.UpdateActiveCharacter();
UniverseUC.UpdateActiveCharacter(null);
}
Expand Down Expand Up @@ -733,9 +731,11 @@ private void CharactersListMenuItemDelete_Click(object sender, RoutedEventArgs e

EVEData.LocalCharacter lc = CharactersList.SelectedItem as EVEData.LocalCharacter;



ActiveCharacter = null;
FleetMembersList.ItemsSource = null;
CollectionViewSource.GetDefaultView(FleetMembersList.ItemsSource).Refresh();


CurrentActiveCharacterCombo.SelectedIndex = -1;
RegionsViewUC.ActiveCharacter = null;
Expand Down

0 comments on commit c84b32b

Please sign in to comment.