Revision eb2ae14b src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
310 | 310 |
header.addStyleName("pithos-header-noframe"); |
311 | 311 |
upload = new Button("Upload File", new ClickHandler() { |
312 | 312 |
@Override |
313 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) { |
|
314 |
new UploadFileCommand(Pithos.this, null, getSelection()).execute(); |
|
313 |
public void onClick(ClickEvent event) { |
|
314 |
if (getSelection() != null) |
|
315 |
new UploadFileCommand(Pithos.this, null, getSelection()).execute(); |
|
315 | 316 |
} |
316 | 317 |
}); |
317 | 318 |
upload.addStyleName("pithos-uploadButton"); |
Also available in: Unified diff