This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 29927
Collapse All | Expand All

(-)openide/src/org/openide/actions/PasteAction.java (+2 lines)
Lines 410-419 Link Here
410
            Action a = null;
410
            Action a = null;
411
            if (arr.length == 1 && arr[0] instanceof Action) {
411
            if (arr.length == 1 && arr[0] instanceof Action) {
412
                a = (Action)arr[0];
412
                a = (Action)arr[0];
413
                a.removePropertyChangeListener(weakL);
413
                a.addPropertyChangeListener(weakL);
414
                a.addPropertyChangeListener(weakL);
414
            }
415
            }
415
            // plus always make sure we are listening on the actions
416
            // plus always make sure we are listening on the actions
416
            if (listen[0] != a) {
417
            if (listen[0] != a) {
418
                listen[0].removePropertyChangeListener(weakL);
417
                listen[0].addPropertyChangeListener (weakL);
419
                listen[0].addPropertyChangeListener (weakL);
418
            }
420
            }
419
            
421
            

Return to bug 29927