Skip to content

Commit

Permalink
Fixed Clear Settings not properly clearing skill lists
Browse files Browse the repository at this point in the history
  • Loading branch information
AthenaADP committed Oct 1, 2018
1 parent cc43a23 commit b1c8b3e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Form1.h
Original file line number Diff line number Diff line change
Expand Up @@ -3314,6 +3314,11 @@ namespace MHGUASS
System::Void mnuClearSettings_Click( System::Object^ sender, System::EventArgs^ e )
{
cmbSort->SelectedIndex = 0;

SuspendUpdate::Suspend( tabHunterType );

lock_skills = true;

for each( ComboBox^ cb in bSkills )
{
cb->SelectedIndex = -1;
Expand All @@ -3322,14 +3327,27 @@ namespace MHGUASS
{
cb->SelectedIndex = -1;
}

lock_skills = false;

for each( ComboBox^ cb in bSkillFilters )
{
cb->SelectedIndex = 0;
if( cb->SelectedIndex == 0 )
cmbSkillFilter_SelectedIndexChanged( cb, bSkills, bSkillFilters, bIndexMaps );
else
cb->SelectedIndex = 0;
}
for each( ComboBox^ cb in gSkillFilters )
{
if( cb->SelectedIndex == 0 )
cmbSkillFilter_SelectedIndexChanged( cb, gSkills, gSkillFilters, gIndexMaps );
else
cb->SelectedIndex = 0;
}

SuspendUpdate::Resume( tabHunterType );

OptionsChanged( sender, e );
}

System::Void nudHR_ValueChanged(System::Object^ sender, System::EventArgs^ e)
Expand Down

0 comments on commit b1c8b3e

Please sign in to comment.