Skip to content

Commit

Permalink
Fixed bug that caused a crash if you pressed back and there wasn't a …
Browse files Browse the repository at this point in the history
…song playing
40163650 committed Feb 26, 2023
1 parent a687ebe commit 617be03
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Form1.cs
Original file line number Diff line number Diff line change
@@ -22,14 +22,13 @@ private void btnAnalyse_Click(object sender, EventArgs e)
{
Results results = new(this);
results.Show();
Hide();
}
else
{
ExistingResults.Show();
Hide();
ExistingResults.btnRefresh_Click(null, null);
}
Hide();
}
else
{
5 changes: 4 additions & 1 deletion Results.cs
Original file line number Diff line number Diff line change
@@ -268,7 +268,10 @@ private void tbFilter_TextChanged(object sender, EventArgs e)

private void btn_Back_Click(object sender, EventArgs e)
{
waveOut.Stop();
if(waveOut != null)
{
waveOut.Stop();
}
MyParentForm.ExistingResults = this;
MyParentForm.Show();
this.Hide();

0 comments on commit 617be03

Please sign in to comment.