From commits-return-37022-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Fri Jul 5 14:19:24 2013 Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 058DCF46D for ; Fri, 5 Jul 2013 14:19:24 +0000 (UTC) Received: (qmail 69148 invoked by uid 500); 5 Jul 2013 14:19:24 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 69089 invoked by uid 500); 5 Jul 2013 14:19:22 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 69080 invoked by uid 99); 5 Jul 2013 14:19:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 14:19:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 14:19:18 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 074B22388906; Fri, 5 Jul 2013 14:18:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1500017 - /directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java Date: Fri, 05 Jul 2013 14:18:57 -0000 To: commits@directory.apache.org From: pamarcelot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130705141858.074B22388906@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: pamarcelot Date: Fri Jul 5 14:18:57 2013 New Revision: 1500017 URL: http://svn.apache.org/r1500017 Log: Final fix for DIRSTUDIO-903 (Clicking "Accept" when no changes have been made on the password edit dialog changes the password) Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java?rev=1500017&r1=1500016&r2=1500017&view=diff ============================================================================== --- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java (original) +++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java Fri Jul 5 14:18:57 2013 @@ -685,7 +685,7 @@ public class PasswordDialog extends Dial { // set new password to the UI widgets newPassword = new Password( getSelectedNewPasswordHashMethod(), newPasswordText.getText() ); - if ( !"".equals( newPasswordText.getText() ) || newPassword.getHashMethod() == null ) //$NON-NLS-1$ + if ( !"".equals( newPasswordText.getText() ) ) //$NON-NLS-1$ { newPasswordPreviewValueHexText .setText( Utils.getNonNullString( newPassword.getHashedPasswordAsHexString() ) );