Ignore:
Timestamp:
2017-09-26T01:19:15+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15275 - Download dialog does not remember settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r12878 r12900  
    388388        }
    389389
     390        downloadSourcesTab.getAllPanels().forEach(AbstractDownloadSourcePanel::restoreSettings);
    390391        downloadSourcesTab.setSelected(DOWNLOAD_SOURCE_TAB.get());
    391392
     
    486487     */
    487488    protected <T> void addNewDownloadSourceTab(DownloadSource<T> downloadSource) {
    488         downloadSourcesTab.addPanel(downloadSource.createPanel());
     489        downloadSourcesTab.addPanel(downloadSource.createPanel(this));
    489490    }
    490491
     
    586587     * @since 12706
    587588     */
    588     private static class DownloadSourceTabs extends JTabbedPane implements DownloadSourceListener {
     589    private class DownloadSourceTabs extends JTabbedPane implements DownloadSourceListener {
    589590        private final List<AbstractDownloadSourcePanel<?>> allPanels = new ArrayList<>();
    590591
     
    645646        @Override
    646647        public void downloadSourceAdded(DownloadSource<?> source) {
    647             addPanel(source.createPanel());
     648            addPanel(source.createPanel(DownloadDialog.this));
    648649        }
    649650    }
Note: See TracChangeset for help on using the changeset viewer.