james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r833744 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
Date Sat, 07 Nov 2009 20:07:43 GMT
Author: norman
Date: Sat Nov  7 20:07:42 2009
New Revision: 833744

URL: http://svn.apache.org/viewvc?rev=833744&view=rev
Log:
Get sure all fields are reset

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java?rev=833744&r1=833743&r2=833744&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
Sat Nov  7 20:07:42 2009
@@ -353,7 +353,13 @@
         bind();
         
         display.getFromText().setText(user.getName());
+        display.getToText().setText("");
+        display.getCcText().setText("");
+        display.getBccText().setText("");
+        display.getSubjectText().setText("");
+        display.getMessageText().setText("");
 
+        display.getMessageText().setText("");
         if (type.equals(Type.FORWARD)) {
             display.getSubjectText().setText("Fwd: " + oldmessage.getSubject());
             display.getMessageText().setText("\n\n-------- Original Message -------\n" );
@@ -377,9 +383,6 @@
                 display.getToText().setText(Util.arrayToString(oldmessage.getTo()));
 
             }
-        }else {
-            display.getSubjectText().setText("");
-            display.getMessageText().setText("");
         }
     }
     



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message