Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Apr 24, 2006
1 parent 6e17772 commit 5236ec5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions source/ch/cyberduck/ui/cocoa/CDCreateFileController.java
Expand Up @@ -42,10 +42,9 @@ public CDCreateFileController(CDWindowController parent) {
}

public void callback(int returncode) {
Path selected = ((CDBrowserController)parent).getSelectedPath();
Path workdir = null;
if(selected != null) {
workdir = selected.getParent();
if(((CDBrowserController)parent).getSelectionCount() == 1) {
workdir = ((CDBrowserController)parent).getSelectedPath().getParent();
}
else {
workdir = ((CDBrowserController) parent).workdir();
Expand Down
7 changes: 3 additions & 4 deletions source/ch/cyberduck/ui/cocoa/CDFolderController.java
Expand Up @@ -66,10 +66,9 @@ protected boolean validateInput() {

public void callback(int returncode) {
if (returncode == DEFAULT_OPTION) {
Path selected = ((CDBrowserController)parent).getSelectedPath();
Path workdir = null;
if(selected != null) {
workdir = selected.getParent();
if(((CDBrowserController)parent).getSelectionCount() == 1) {
workdir = ((CDBrowserController)parent).getSelectedPath().getParent();
}
else {
workdir = ((CDBrowserController) parent).workdir();
Expand All @@ -78,7 +77,7 @@ public void callback(int returncode) {
}
}

public void createFolder(Path workdir, String filename) {
protected void createFolder(Path workdir, String filename) {
Path folder = PathFactory.createPath(workdir.getSession(), workdir.getAbsolute(), filename);
folder.mkdir(false);
if(folder.exists()) {
Expand Down

0 comments on commit 5236ec5

Please sign in to comment.