Ticket #10845: empty_note_dialog.patch

File empty_note_dialog.patch, 875 bytes (added by ToeBee, 10 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/NoteDialog.java

     
    9494        sortAction = new SortAction();
    9595        uploadAction = new UploadNotesAction();
    9696        buildDialog();
     97        MapView.addLayerChangeListener(this);
    9798    }
    9899
    99100    @Override
     
    156157    }
    157158
    158159    @Override
    159     public void showNotify() {
    160         MapView.addLayerChangeListener(this);
    161     }
     160    public void showNotify() { }
    162161
    163162    @Override
    164     public void hideNotify() {
    165         MapView.removeLayerChangeListener(this);
    166     }
     163    public void hideNotify() { }
    167164
    168165    @Override
    169166    public void activeLayerChange(Layer oldLayer, Layer newLayer) { }