- Timestamp:
- 2011-08-28T12:48:42+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r4363 r4369 451 451 putValue(SHORT_DESCRIPTION, tr("Opens the Changeset Manager window for the selected changesets")); 452 452 putValue(SMALL_ICON, ImageProvider.get("dialogs/changeset", "changesetmanager")); 453 updateEnabledState();454 453 } 455 454 … … 471 470 ChangesetListModel model = getCurrentChangesetListModel(); 472 471 Set<Integer> sel = model.getSelectedChangesetIds(); 473 if (sel.isEmpty())474 return;475 472 final Set<Integer> toDownload = new HashSet<Integer>(); 476 473 ChangesetCache cc = ChangesetCache.getInstance(); … … 522 519 } 523 520 524 protected void updateEnabledState() {525 setEnabled(getCurrentChangesetList().getSelectedIndices().length > 0);526 }527 528 521 public void itemStateChanged(ItemEvent arg0) { 529 updateEnabledState();530 522 } 531 523 532 524 public void valueChanged(ListSelectionEvent e) { 533 updateEnabledState();534 525 } 535 526 }
Note:
See TracChangeset
for help on using the changeset viewer.