don't allow tags unless 4 letters long
This commit is contained in:
parent
e515512d88
commit
ccc51f2d68
@ -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());
|
||||
|
Reference in New Issue
Block a user