Skip to content

Commit

Permalink
Merge pull request #53 from mikkelbu/issue52
Browse files Browse the repository at this point in the history
Remove NRE when changing ShowCheckBoxes
  • Loading branch information
CharliePoole committed Jun 14, 2018
2 parents 14f33b6 + c12b249 commit 7f309e1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/TestCentric/testcentric.gui/Controls/TestTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ public TestNode[] FailedTests

private ITestModel Model { get; set; }

private UserSettings UserSettings { get; set; }

[Browsable(false)]
public bool ShowCheckBoxes
{
Expand Down Expand Up @@ -692,8 +690,8 @@ private void excludeCheckbox_CheckedChanged(object sender, System.EventArgs e)
//}

private void checkBoxesMenuItem_Click(object sender, System.EventArgs e)
{
UserSettings.TestCentric.TestTree.ShowCheckBoxes = ShowCheckBoxes = !checkBoxesMenuItem.Checked;
{
ShowCheckBoxes = !checkBoxesMenuItem.Checked;
}

private void UpdateCategorySelection()
Expand All @@ -713,9 +711,9 @@ private void UpdateCategorySelection()
}

private void tests_CheckBoxesChanged(object sender, System.EventArgs e)
{
ShowCheckBoxes = tests.CheckBoxes;
}
{
ShowCheckBoxes = tests.CheckBoxes;
}

//private void UserSettings_Changed(object sender, SettingsEventArgs args)
//{
Expand Down

0 comments on commit 7f309e1

Please sign in to comment.