HaikuDepot: Validate input before creating account

Provide error or info alert when fields are invalid, suggest
providing an email, but allow to ignore the warning.
This commit is contained in:
Stephan Aßmus
2014-10-04 13:31:58 +02:00
parent fa09af9a8f
commit 6f9eb8d1bb
3 changed files with 148 additions and 3 deletions
+5
View File
@@ -336,10 +336,15 @@ BTextControl::Text() const
void
BTextControl::MarkAsInvalid(bool invalid)
{
uint32 look = fLook;
if (invalid)
fLook |= BControlLook::B_INVALID;
else
fLook &= ~BControlLook::B_INVALID;
if (look != fLook)
Invalidate();
}