Skip to content

Commit

Permalink
fixed crash when "use no deck" is pressed without having a deck selected
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Jul 6, 2014
1 parent eb4553f commit 849902e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Hearthstone Deck Tracker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,10 @@ private void ButtonNoDeck_Click(object sender, RoutedEventArgs e)
_overlay.ListViewPlayer.ItemsSource = _hearthstone.PlayerDrawn;
_playerWindow.ListViewPlayer.ItemsSource = _hearthstone.PlayerDrawn;
_hearthstone.IsUsingPremade = false;
DeckPickerList.SelectedDeck.IsSelectedInGui = false;

if(DeckPickerList.SelectedDeck != null)
DeckPickerList.SelectedDeck.IsSelectedInGui = false;

DeckPickerList.SelectedDeck = null;
DeckPickerList.SelectedIndex = -1;
DeckPickerList.ListboxPicker.Items.Refresh();
Expand Down

0 comments on commit 849902e

Please sign in to comment.