Fix CTRL/ALT held during nickname update

Only should fire when sent from L_Species. (sure I could hard code it
sender as Label == L_Species but nah)

Thanks Joedor.
This commit is contained in:
Kurt 2016-01-14 21:05:05 -08:00
parent 5915b38ee6
commit 0e021b42c6

View file

@ -1977,12 +1977,12 @@ namespace PKHeX
}
private void updateNickname(object sender, EventArgs e)
{
if (fieldsInitialized && ModifierKeys == Keys.Control) // Import Showdown
if (fieldsInitialized && ModifierKeys == Keys.Control && sender != null) // Import Showdown
{
clickShowdownImportPK6(sender, e);
return;
}
if (fieldsInitialized && ModifierKeys == Keys.Alt) // Export Showdown
if (fieldsInitialized && ModifierKeys == Keys.Alt && sender != null) // Export Showdown
{
clickShowdownExportPK6(sender, e);
return;