Index: openide/src/org/openide/actions/PasteAction.java =================================================================== RCS file: /cvs/openide/src/org/openide/actions/PasteAction.java,v retrieving revision 1.38 diff -u -r1.38 PasteAction.java --- openide/src/org/openide/actions/PasteAction.java 9 Jan 2003 17:08:47 -0000 1.38 +++ openide/src/org/openide/actions/PasteAction.java 10 Jan 2003 07:40:27 -0000 @@ -410,10 +410,12 @@ Action a = null; if (arr.length == 1 && arr[0] instanceof Action) { a = (Action)arr[0]; + a.removePropertyChangeListener(weakL); a.addPropertyChangeListener(weakL); } // plus always make sure we are listening on the actions if (listen[0] != a) { + listen[0].removePropertyChangeListener(weakL); listen[0].addPropertyChangeListener (weakL); }