Changeset 8078 in josm


Ignore:
Timestamp:
2015-02-17T08:47:19+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #10930 - different selections in mapview and notes dialog list (patch by ToeBee)

File:
1 edited

Legend:

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

    r8061 r8078  
    314314                return;
    315315            }
     316            int selectedIndex = displayList.getSelectedIndex();
    316317            noteData.addCommentToNote(note, dialog.getInputText());
     318            noteData.setSelectedNote(model.getElementAt(selectedIndex));
    317319        }
    318320    }
     
    335337            }
    336338            Note note = displayList.getSelectedValue();
     339            int selectedIndex = displayList.getSelectedIndex();
    337340            noteData.closeNote(note, dialog.getInputText());
     341            noteData.setSelectedNote(model.getElementAt(selectedIndex));
    338342        }
    339343    }
     
    374378
    375379            Note note = displayList.getSelectedValue();
     380            int selectedIndex = displayList.getSelectedIndex();
    376381            noteData.reOpenNote(note, dialog.getInputText());
     382            noteData.setSelectedNote(model.getElementAt(selectedIndex));
    377383        }
    378384    }
Note: See TracChangeset for help on using the changeset viewer.