Revision 10ff638f src/gr/grnet/pithos/web/client/FileContextMenu.java

b/src/gr/grnet/pithos/web/client/FileContextMenu.java
203 203
        }
204 204
        boolean isFolderTreeSelected = selectedTree.equals(app.getFolderTreeView());
205 205
        boolean isMysharedSelected = selectedTree.equals(app.getMySharedTreeView());
206

  
207
        Pithos.LOG("FileContextMenu(), selectedFolder=", selectedFolder);
208
        Pithos.LOG("FileContextMenu(), isFolderTreeSelected=", isFolderTreeSelected);
209
        Pithos.LOG("FileContextMenu(), isMysharedSelected=", isMysharedSelected);
210

  
206 211
        if (selectedFolder != null) {
207 212
		    if (!selectedFolder.isInTrash()) {
208 213
		        if (canWrite && app.getClipboard().hasFiles() && !isMysharedSelected) {
......
230 235
		    else {
231 236
				MenuItem restore = new MenuItem("<span>" + AbstractImagePrototype.create(images.versions()).getHTML() + "&nbsp;Restore</span>", true, new RestoreTrashCommand(app, this, selectedFiles));
232 237
				contextMenu.addItem(restore);
233
		    }
234
        }
235 238

  
236
        if (isFolderTreeSelected || isMysharedSelected) {
237
			deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + "&nbsp;Delete</span>", true, new DeleteCommand(app, this, selectedFiles, MessagePanel.images));
238
	        contextMenu.addItem(deleteItem);
239
                deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + "&nbsp;Delete</span>", true, new DeleteCommand(app, this, selectedFiles, MessagePanel.images));
240
                contextMenu.addItem(deleteItem);
241
		    }
239 242
        }
240 243

  
241 244
        if (selectedFolder != null && !selectedFolder.isInTrash()) {

Also available in: Unified diff