[haiku-commits] haiku: hrev47977 - src/apps/haikudepot/ui

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Oct 2014 21:33:00 +0200 (CEST)

hrev47977 adds 1 changeset to branch 'master'
old head: 04f23913f0cce5dc394c5846dbad96dc6068ef10
new head: cdb2290fe924eb75be48cd8cd0023b05c5bb6573
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=cdb2290+%5E04f2391

----------------------------------------------------------------------------

cdb2290: HaikuDepot: Logic reversal with marking username field
  
  Fixed flipping the boolean passed to MarkAsInvalid() for the user name field,
  which only recently became apparent.

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev47977
Commit:      cdb2290fe924eb75be48cd8cd0023b05c5bb6573
URL:         http://cgit.haiku-os.org/haiku/commit/?id=cdb2290
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Tue Oct  7 19:35:09 2014 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/haikudepot/ui/UserLoginWindow.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/haikudepot/ui/UserLoginWindow.cpp 
b/src/apps/haikudepot/ui/UserLoginWindow.cpp
index 25624b8..5a24fb2 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


Other related posts:

  • » [haiku-commits] haiku: hrev47977 - src/apps/haikudepot/ui - superstippi