Cyberduck Mountain Duck CLI

Changeset 38616


Ignore:
Timestamp:
Apr 12, 2017 7:15:05 PM (15 months ago)
Author:
dkocher
Message:

Retain datasource. Fix #9889.

Location:
trunk/osx/src/main/java/ch/cyberduck/ui/cocoa/quicklook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/osx/src/main/java/ch/cyberduck/ui/cocoa/quicklook/QuartzQuickLook.java

    r38253 r38616  
    2323import ch.cyberduck.core.Local;
    2424
     25import org.apache.log4j.Logger;
    2526import org.rococoa.ID;
    2627import org.rococoa.cocoa.foundation.NSInteger;
     
    3031
    3132public final class QuartzQuickLook implements QuickLook {
     33    private static final Logger log = Logger.getLogger(QuartzQuickLook.class);
    3234
    3335    private final List<QLPreviewItem> previews
     
    8486        panel.makeKeyAndOrderFront(null);
    8587        if(null == panel.dataSource()) {
    86             // Do not reload data yet because datasource is not yet setup.
    87             // Focus has probably changed to another application since
     88            log.warn("Do not reload data yet because datasource is not yet setup. Focus has probably changed to another application since");
    8889            return;
    8990        }
     
    9394    @Override
    9495    public void close() {
    95         if(panel != null) {
    96             panel.close();
    97         }
    98         else {
    99             previews.clear();
    100         }
     96        panel.setDataSource(null);
     97        panel.close();
    10198    }
    10299
    103100    @Override
    104101    public void didEndQuickLook() {
    105         panel.setDataSource(null);
    106102        previews.clear();
    107103    }
  • trunk/osx/src/main/java/ch/cyberduck/ui/cocoa/quicklook/QuickLook.java

    r38253 r38616  
    3838    boolean isOpen();
    3939
    40     void willBeginQuickLook();
    41 
    4240    /**
    4341     * Open QuickLook panel
     
    5048    void close();
    5149
     50    void willBeginQuickLook();
    5251    void didEndQuickLook();
    5352}
Note: See TracChangeset for help on using the changeset viewer.
swiss made software