summaryrefslogtreecommitdiffstats
path: root/idrop-swing
diff options
context:
space:
mode:
authorLisa Stillwell <lisa@renci.org>2013-01-15 20:41:54 (GMT)
committer Lisa Stillwell <lisa@renci.org>2013-01-15 20:41:54 (GMT)
commit139211b5c542c0a2a76b56a08aa4a753c0347b43 (patch)
tree7b0290e7cc9f22295708cb9e2353409f3598e92d /idrop-swing
parentbba3776a50805ed97d64d80240a85016b3ccf8aa (diff)
downloadQCG-Data-139211b5c542c0a2a76b56a08aa4a753c0347b43.zip
QCG-Data-139211b5c542c0a2a76b56a08aa4a753c0347b43.tar.gz
QCG-Data-139211b5c542c0a2a76b56a08aa4a753c0347b43.tar.bz2
[#983] fix bug where dataobject can be selected as Upload target
Diffstat (limited to 'idrop-swing')
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java
index 115c8bd..d9ab04f 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java
@@ -101,7 +101,7 @@ public class UploadDialog extends javax.swing.JDialog implements ListSelectionLi
ifile = irodsFS.getIRODSFileForPath(selectedNode.getFullPath());
// rule out "/"
String path = ifile.getAbsolutePath();
- if ((path != null) && (!path.equals("/"))) {
+ if ((ifile.isDirectory()) && (path != null) && (!path.equals("/"))) {
target = path;
}
} catch (IdropException ex) {