labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r795419 - /labs/hupa/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java
Date Sat, 18 Jul 2009 18:50:53 GMT
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


Mime
View raw message