Changeset 12265 in josm


Ignore:
Timestamp:
2017-05-27T19:22:23+02:00 (8 years ago)
Author:
michael2402
Message:

Fix #5676: Force a reload of the edit summary field if the user uploads data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/TagSettingsPanel.java

    r11553 r12265  
    9191     */
    9292    public Map<String, String> getTags(boolean keepEmpty) {
     93        forceCommentFieldReload();
    9394        return pnlTagEditor.getModel().getTags(keepEmpty);
    9495    }
     
    108109        changesetCommentModel.setComment(getTagEditorValue("comment"));
    109110        changesetSourceModel.setComment(getTagEditorValue("source"));
     111    }
     112
     113    /**
     114     * Force update the fields if the user is currently changing them. See #5676
     115     */
     116    private void forceCommentFieldReload() {
     117        setProperty("comment", changesetCommentModel.getComment());
     118        setProperty("source", changesetSourceModel.getComment());
    110119    }
    111120
Note: See TracChangeset for help on using the changeset viewer.