Changeset 4369 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2011-08-28T12:48:42+02:00 (13 years ago)
Author:
stoecker
Message:

fix #6646 - patch by Don-vip - don't disable changeset manager button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r4363 r4369  
    451451            putValue(SHORT_DESCRIPTION, tr("Opens the Changeset Manager window for the selected changesets"));
    452452            putValue(SMALL_ICON, ImageProvider.get("dialogs/changeset", "changesetmanager"));
    453             updateEnabledState();
    454453        }
    455454
     
    471470            ChangesetListModel model = getCurrentChangesetListModel();
    472471            Set<Integer> sel = model.getSelectedChangesetIds();
    473             if (sel.isEmpty())
    474                 return;
    475472            final Set<Integer> toDownload = new HashSet<Integer>();
    476473            ChangesetCache cc = ChangesetCache.getInstance();
     
    522519        }
    523520
    524         protected void updateEnabledState() {
    525             setEnabled(getCurrentChangesetList().getSelectedIndices().length > 0);
    526         }
    527 
    528521        public void itemStateChanged(ItemEvent arg0) {
    529             updateEnabledState();
    530522        }
    531523
    532524        public void valueChanged(ListSelectionEvent e) {
    533             updateEnabledState();
    534525        }
    535526    }
Note: See TracChangeset for help on using the changeset viewer.