1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

Prevent the insertions of empty items into chains.

This commit is contained in:
martynshaw99 2011-08-18 22:53:13 +00:00
parent 9717857b66
commit 22407ec508

View File

@ -784,14 +784,17 @@ void EditChainsDialog::OnInsert(wxCommandEvent &event)
return;
}
mBatchCommands.AddToChain(d.mSelectedCommand,
d.mSelectedParameters,
item);
mChanged = true;
if(d.mSelectedCommand != wxT(""))
{
mBatchCommands.AddToChain(d.mSelectedCommand,
d.mSelectedParameters,
item);
mChanged = true;
mSelectedCommand = item + 1;
mSelectedCommand = item + 1;
PopulateList();
PopulateList();
}
}
///
@ -904,16 +907,3 @@ void EditChainsDialog::OnKeyDown(wxKeyEvent &event)
event.Skip();
}
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
// version control system. Please do not modify past this point.
//
// Local Variables:
// c-basic-offset: 3
// indent-tabs-mode: nil
// End:
//
// vim: et sts=3 sw=3
// arch-tag: TBD