[Webfunds-commits] java/webfunds/client SimplePaymentFrame.java

Jeroen C. van Gelderen gelderen@cypherpunks.ai
Wed, 14 Mar 2001 15:16:15 -0400 (AST)


gelderen    01/03/14 15:16:15

  Modified:    webfunds/client SimplePaymentFrame.java
  Log:
  - Chase renamed method in ClipboardHelper;
  - Disable automatic copying of data to the clipboard and add a comment
    indicating why.

Revision  Changes    Path
1.51      +7 -3      java/webfunds/client/SimplePaymentFrame.java

Index: SimplePaymentFrame.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/SimplePaymentFrame.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- SimplePaymentFrame.java	2001/03/14 18:35:01	1.50
+++ SimplePaymentFrame.java	2001/03/14 19:16:14	1.51
@@ -1,5 +1,5 @@
 /*
- * $Id: SimplePaymentFrame.java,v 1.50 2001/03/14 18:35:01 gelderen Exp $
+ * $Id: SimplePaymentFrame.java,v 1.51 2001/03/14 19:16:14 gelderen Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -334,9 +334,13 @@
                 "to   " + tgtName + NEWLINE +
                 new String(payment);
 
-            paymentArea.append(ClipboardHelper.toUnixText(msg));
+            paymentArea.append(ClipboardHelper.toClipboardableText(msg));
 
-            ClipboardHelper.setClipboardText( paymentArea.getText() );
+            // XXX: This should go as it may destroy user data that is
+            //      currently present on the clipboard. Additionally it
+            //      may put 'sensitive' data on the clipboard unbeknownst 
+            //      to the user. Copy should be a user-initiated action.
+            //ClipboardHelper.setClipboardText( paymentArea.getText() );
         }
 
         else if ("Direct Transfer".equals(command))