don't allow tags unless 4 letters long

This commit is contained in:
jacob1 2013-01-14 23:38:55 -05:00
parent e515512d88
commit ccc51f2d68

View File

@ -151,6 +151,11 @@ void TagsView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
void TagsView::addTag()
{
if (tagInput->GetText().length() < 4)
{
new ErrorMessage("Tag not long enough", "Must be at least 4 letters");
return;
}
try
{
c->AddTag(tagInput->GetText());