Skip to content

Commit

Permalink
Fix #8774.
Browse files Browse the repository at this point in the history
Former-commit-id: 6d3ab6393c49ebbaaa3df69925b037c427635f0c
  • Loading branch information
dkocher committed May 4, 2015
1 parent 32ee747 commit e2e6dd4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions source/ch/cyberduck/ui/cocoa/BrowserListViewModel.java
Expand Up @@ -50,6 +50,7 @@ public BrowserListViewModel(final BrowserController controller, final Cache<Path

@Override
public void render(final NSTableView view, final List<Path> folders) {
super.render(view, folders);
if(log.isDebugEnabled()) {
log.debug(String.format("Reload table view %s for changes files %s", view, folders));
}
Expand Down
1 change: 1 addition & 0 deletions source/ch/cyberduck/ui/cocoa/BrowserOutlineViewModel.java
Expand Up @@ -53,6 +53,7 @@ public BrowserOutlineViewModel(final BrowserController controller, final Cache<P

@Override
public void render(final NSTableView view, final List<Path> folders) {
super.render(view, folders);
if(log.isDebugEnabled()) {
log.debug(String.format("Reload table view %s for changes files %s", view, folders));
}
Expand Down
9 changes: 6 additions & 3 deletions source/ch/cyberduck/ui/cocoa/BrowserTableDataSource.java
Expand Up @@ -162,7 +162,9 @@ protected BrowserTableDataSource(final BrowserController controller, final Cache
*
* @param folders Changed files
*/
public abstract void render(final NSTableView view, final List<Path> folders);
public void render(final NSTableView view, final List<Path> folders) {
attributed.clear();
}

protected AttributedList<Path> get(final Path directory) {
return cache.get(directory).filter(controller.getComparator(), controller.getFilter());
Expand Down Expand Up @@ -203,12 +205,13 @@ protected NSObject objectValueForItem(final Path item, final String identifier)
return this.iconForPath(item);
}
final Item key = new Item(item, identifier);
// Query second level cache with view items
NSAttributedString value = attributed.get(key);
if(null != value) {
return value;
}
if(log.isDebugEnabled()) {
log.debug(String.format("Lookup failed for %s in cache", key));
if(log.isTraceEnabled()) {
log.trace(String.format("Lookup failed for %s in cache", key));
}
if(identifier.equals(Column.filename.name())) {
value = NSAttributedString.attributedStringWithAttributes(
Expand Down

0 comments on commit e2e6dd4

Please sign in to comment.