Revision 006ec41a

b/src/gr/grnet/pithos/web/client/FolderContextMenu.java
107 107
		        }
108 108
        	}
109 109

  
110
	        MenuItem copy = new MenuItem("<span id = 'folderContextMenu.copy'>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + "&nbsp;Copy</span>", true, new CopyCommand(app, this, folder));
111
	        contextMenu.addItem(copy);
110
        	if (!folder.isContainer()) {
111
        		MenuItem copy = new MenuItem("<span id = 'folderContextMenu.copy'>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + "&nbsp;Copy</span>", true, new CopyCommand(app, this, folder));
112
        		contextMenu.addItem(copy);
113
        	}
112 114
	
113 115
        	if (canWrite) {
114 116
		        if (!app.getClipboard().isEmpty()) {
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() + "&nbsp;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() + "&nbsp;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() + "&nbsp;Download</span>", true, new Command() {
178 179
							
179 180
							@Override

Also available in: Unified diff