Changeset 17250 in josm


Ignore:
Timestamp:
2020-10-22T10:33:59+02:00 (4 years ago)
Author:
GerdP
Message:

fix #18527: changeset manager: content information of (closed) changeset lost when updating discussion
Ignore events which are created when tables are sorted. Avoids to download known data again and seems to fix this problem as well. With the old code the content was of the panel was cleared because of events that contained no changeset id.

File:
1 edited

Legend:

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

    r16826 r17250  
    451451        @Override
    452452        public void valueChanged(ListSelectionEvent e) {
    453             updateEnabledState();
     453            if (!e.getValueIsAdjusting())
     454                updateEnabledState();
    454455        }
    455456    }
     
    495496        @Override
    496497        public void valueChanged(ListSelectionEvent e) {
    497             updateEnabledState();
     498            if (!e.getValueIsAdjusting())
     499                updateEnabledState();
    498500        }
    499501    }
     
    528530        @Override
    529531        public void valueChanged(ListSelectionEvent e) {
    530             updateEnabledState();
     532            if (!e.getValueIsAdjusting())
     533                updateEnabledState();
    531534        }
    532535    }
     
    561564        @Override
    562565        public void valueChanged(ListSelectionEvent e) {
    563             updateEnabledState();
     566            if (!e.getValueIsAdjusting())
     567                updateEnabledState();
    564568        }
    565569    }
     
    601605        @Override
    602606        public void valueChanged(ListSelectionEvent e) {
    603             updateEnabledState();
     607            if (!e.getValueIsAdjusting())
     608                updateEnabledState();
    604609        }
    605610    }
     
    694699        @Override
    695700        public void valueChanged(ListSelectionEvent e) {
     701            if (e.getValueIsAdjusting())
     702                return;
     703
    696704            List<Changeset> selected = model.getSelectedChangesets();
    697705            if (selected.size() == 1) {
Note: See TracChangeset for help on using the changeset viewer.