Ticket #5816: 5816.patch

File 5816.patch, 1.6 KB (added by Don-vip, 11 years ago)
  • core/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

     
    2626import javax.swing.JToggleButton;
    2727
    2828import org.openstreetmap.josm.Main;
    29 import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    3029import org.openstreetmap.josm.gui.dialogs.DialogsPanel.Action;
     30import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    3131import org.openstreetmap.josm.tools.ImageProvider;
    3232import org.openstreetmap.josm.tools.Shortcut;
    3333
     
    6767        super(tr("Geotagged Images"), "geoimage", tr("Display geotagged images"), Shortcut.registerShortcut("tools:geotagged",
    6868        tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200);
    6969
    70         /* Don't show a detached dialog right from the start. */
    71         if (isShowing && !isDocked) {
    72             setIsShowing(false);
    73         }
    74 
    7570        JPanel content = new JPanel();
    7671        content.setLayout(new BorderLayout());
    7772
     
    273268    }
    274269
    275270    /**
    276      * When pressing the Toggle button always show the docked dialog.
    277      */
    278     @Override
    279     protected void toggleButtonHook() {
    280         if (! isShowing) {
    281             setIsDocked(true);
    282             setIsCollapsed(false);
    283         }
    284     }
    285 
    286     /**
    287271     * When an image is closed, really close it and do not pop
    288272     * up the side dialog.
    289273     */