Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Jul 12, 2008
1 parent 3bf8b7b commit c16299e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions source/ch/cyberduck/ui/cocoa/CDBrowserController.java
Expand Up @@ -1162,6 +1162,7 @@ public void toggleBookmarks(final boolean open) {
this.setBookmarkFilter(null);
this.browserTabView.selectTabViewItemAtIndex(Preferences.instance().getInteger("browser.view"));
}
this.getFocus();
this.validateNavigationButtons();
}

Expand Down Expand Up @@ -1804,6 +1805,7 @@ public void selectionDidChange(NSNotification notification) {
// receive drag events from types
this.bookmarkTable.registerForDraggedTypes(new NSArray(new Object[]
{
NSPasteboard.StringPboardType,
NSPasteboard.FilenamesPboardType, //accept bookmark files dragged from the Finder
NSPasteboard.FilesPromisePboardType,
"HostPBoardType" //moving bookmarks
Expand Down Expand Up @@ -3747,6 +3749,9 @@ public void run() {
getSelectedBrowserView().setNeedsDisplay();
bookmarkTable.setNeedsDisplay();

if(!isMounted()) {
window.setTitle((String) NSBundle.mainBundle().infoDictionary().objectForKey("CFBundleName"));
}
window.setDocumentEdited(false);

securityLabel.setImage(NSImage.imageNamed("unlocked.tiff"));
Expand Down Expand Up @@ -3827,12 +3832,6 @@ private void unmount(final boolean forever) {
this.session.cache().clear();
this.session.getHost().getCredentials().setPassword(null);
this.session = null;
CDMainApplication.invoke(new WindowMainAction(this) {
public void run() {
window.setTitle((String) NSBundle.mainBundle().infoDictionary().objectForKey("CFBundleName"));
}
});

}
}
}
Expand Down

0 comments on commit c16299e

Please sign in to comment.