Cyberduck Mountain Duck CLI

Changeset 42664


Ignore:
Timestamp:
Sep 9, 2017 10:53:27 AM (10 months ago)
Author:
dkocher
Message:

Fix #9889.

Location:
shelves/09.2017
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shelves/09.2017/osx/src/main/java/ch/cyberduck/ui/cocoa/controller/BrowserController.java

    r42474 r42664  
    10771077    @Override
    10781078    public void beginPreviewPanelControl(QLPreviewPanel panel) {
    1079         quicklook.willBeginQuickLook();
    10801079    }
    10811080
     
    10891088    @Override
    10901089    public void endPreviewPanelControl(QLPreviewPanel panel) {
    1091         quicklook.didEndQuickLook();
    10921090    }
    10931091
  • shelves/09.2017/osx/src/main/java/ch/cyberduck/ui/cocoa/quicklook/QuartzQuickLook.java

    r42100 r42664  
    7676
    7777    @Override
    78     public void willBeginQuickLook() {
    79         final QLPreviewPanel panel = QLPreviewPanel.sharedPreviewPanel();
    80         if(log.isDebugEnabled()) {
    81             log.debug(String.format("Set datasource for panel %s", panel));
    82         }
    83         panel.setDataSource(model.id());
    84     }
    85 
    86     @Override
    8778    public void open() {
    8879        final QLPreviewPanel panel = QLPreviewPanel.sharedPreviewPanel();
     
    9182        }
    9283        panel.makeKeyAndOrderFront(null);
    93         if(null == panel.dataSource()) {
    94             log.warn("Do not reload data yet because datasource is not yet setup. Focus has probably changed to another application since");
    95             return;
    96         }
     84        panel.setDataSource(model.id());
    9785        if(log.isDebugEnabled()) {
    9886            log.debug(String.format("Reload data for panel %s", panel));
     
    10997        panel.setDataSource(null);
    11098        panel.orderOut(null);
    111     }
    112 
    113     @Override
    114     public void didEndQuickLook() {
    11599        if(log.isDebugEnabled()) {
    116100            log.debug("Clear previews");
  • shelves/09.2017/osx/src/main/java/ch/cyberduck/ui/cocoa/quicklook/QuickLook.java

    r40738 r42664  
    4747     */
    4848    void close();
    49 
    50     void willBeginQuickLook();
    51     void didEndQuickLook();
    5249}
Note: See TracChangeset for help on using the changeset viewer.
swiss made software