Revision 006ec41a src/gr/grnet/pithos/web/client/ToolsMenu.java
b/src/gr/grnet/pithos/web/client/ToolsMenu.java | ||
---|---|---|
121 | 121 |
MenuItem copy = null; |
122 | 122 |
if (files != null && !files.isEmpty()) |
123 | 123 |
copy = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy files</span>", true, new CopyCommand(app, this, files)); |
124 |
else |
|
124 |
else if (!folder.isContainer())
|
|
125 | 125 |
copy = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy folder</span>", true, new CopyCommand(app, this, folder)); |
126 |
contextMenu.addItem(copy); |
|
126 |
if (copy != null) |
|
127 |
contextMenu.addItem(copy); |
|
127 | 128 |
|
128 | 129 |
if (canWrite) { |
129 | 130 |
if (!app.getClipboard().isEmpty()) { |
... | ... | |
173 | 174 |
if (properties != null) |
174 | 175 |
contextMenu.addItem(properties); |
175 | 176 |
} |
176 |
if (files != null) { |
|
177 |
if (files != null && !files.isEmpty()) {
|
|
177 | 178 |
contextMenu.addItem(new MenuItem("<span>" + AbstractImagePrototype.create(newImages.download()).getHTML() + " Download</span>", true, new Command() { |
178 | 179 |
|
179 | 180 |
@Override |
Also available in: Unified diff