Changeset 13144 in josm


Ignore:
Timestamp:
2017-11-22T21:24:09+01:00 (4 weeks ago)
Author:
Don-vip
Message:

see #13747 - fix focus/selection/size issues in upload dialog

File:
1 edited

Legend:

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

    r13130 r13144  
    112112        super(GuiHelper.getFrameForComponent(Main.parent), ModalityType.DOCUMENT_MODAL);
    113113        build();
     114        pack();
    114115    }
    115116
     
    207208        addWindowListener(new WindowEventHandler());
    208209
    209 
    210         // make sure the configuration panels listen to each other
    211         // changes
     210        // make sure the configuration panels listen to each other changes
    212211        //
    213212        pnlChangesetManagement.addPropertyChangeListener(this);
     
    604603     * Listens to window closing events and processes them as cancel events.
    605604     * Listens to window open events and initializes user input
    606      *
    607605     */
    608606    class WindowEventHandler extends WindowAdapter {
     607        private boolean activatedOnce;
     608
    609609        @Override
    610610        public void windowClosing(WindowEvent e) {
     
    613613
    614614        @Override
    615         public void windowActivated(WindowEvent arg0) {
    616             if (tpConfigPanels.getSelectedIndex() == 0) {
     615        public void windowActivated(WindowEvent e) {
     616            if (!activatedOnce && tpConfigPanels.getSelectedIndex() == 0) {
    617617                pnlBasicUploadSettings.initEditingOfUploadComment();
     618                activatedOnce = true;
    618619            }
    619620        }
Note: See TracChangeset for help on using the changeset viewer.