Return-Path: Delivered-To: apmail-labs-commits-archive@minotaur.apache.org Received: (qmail 81969 invoked from network); 18 Jul 2009 18:50:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jul 2009 18:50:10 -0000 Received: (qmail 74520 invoked by uid 500); 18 Jul 2009 18:51:15 -0000 Delivered-To: apmail-labs-commits-archive@labs.apache.org Received: (qmail 74386 invoked by uid 500); 18 Jul 2009 18:51:15 -0000 Mailing-List: contact commits-help@labs.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: labs@labs.apache.org Delivered-To: mailing list commits@labs.apache.org Received: (qmail 74377 invoked by uid 99); 18 Jul 2009 18:51:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2009 18:51:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Sat, 18 Jul 2009 18:51:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 21D5F2388895; Sat, 18 Jul 2009 18:50:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r795419 - /labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java Date: Sat, 18 Jul 2009 18:50:53 -0000 To: commits@labs.apache.org From: norman@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090718185053.21D5F2388895@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: norman Date: Sat Jul 18 18:50:52 2009 New Revision: 795419 URL: http://svn.apache.org/viewvc?rev=795419&view=rev Log: fix increasing /decreasing Modified: labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java Modified: labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java?rev=795419&r1=795418&r2=795419&view=diff ============================================================================== --- labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java (original) +++ labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java Sat Jul 18 18:50:52 2009 @@ -67,8 +67,8 @@ public void descreaseUnseenMessageCount(int decreaseCount) { IMAPFolder folder = (IMAPFolder) getUserObject(); int count = folder.getUnseeMessageCount(); - if (count >0) { - count =- decreaseCount; + if (count > 0) { + count = count - decreaseCount; if (count < 0) { count = 0; } @@ -92,7 +92,7 @@ public void increaseUnseenMessageCount( int increaseCount) { IMAPFolder folder = (IMAPFolder) getUserObject(); int count = folder.getUnseeMessageCount(); - count =+ increaseCount; + count = count+ increaseCount; folder.setUnseenMessageCount(count); setFolderText(folder); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org For additional commands, e-mail: commits-help@labs.apache.org