From cdb2290fe924eb75be48cd8cd0023b05c5bb6573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 7 Oct 2014 21:35:09 +0200 Subject: [PATCH] HaikuDepot: Logic reversal with marking username field Fixed flipping the boolean passed to MarkAsInvalid() for the user name field, which only recently became apparent. --- src/apps/haikudepot/ui/UserLoginWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/haikudepot/ui/UserLoginWindow.cpp b/src/apps/haikudepot/ui/UserLoginWindow.cpp index 25624b811b..5a24fb26db 100644 --- a/src/apps/haikudepot/ui/UserLoginWindow.cpp +++ b/src/apps/haikudepot/ui/UserLoginWindow.cpp @@ -330,7 +330,7 @@ UserLoginWindow::_ValidateCreateAccountFields(bool alertProblems) // TODO: Use the same validation as the web-serivce bool validUserName = nickName.Length() >= 3; - fNewUsernameField->MarkAsInvalid(validUserName); + fNewUsernameField->MarkAsInvalid(!validUserName); bool validPassword = password1.Length() >= 8 && count_digits(password1) >= 2