Skip to content

Commit

Permalink
0003998: DbExport dialog in SQLExplorer does not update file output type
Browse files Browse the repository at this point in the history
after first export
  • Loading branch information
jaredfrees committed Jun 12, 2019
1 parent 63b397e commit ec01a8f
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -43,7 +43,6 @@
import com.vaadin.v7.data.Property.ValueChangeEvent;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.server.FileDownloader;
import com.vaadin.server.Resource;
import com.vaadin.server.StreamResource;
import com.vaadin.server.StreamResource.StreamSource;
import com.vaadin.v7.ui.AbstractSelect;
Expand Down Expand Up @@ -206,6 +205,7 @@ public void buttonClick(ClickEvent event) {

public void buttonClick(ClickEvent event) {
exportFileButton.removeClickShortcut();
fileDownloader.setFileDownloadResource(createResource());
doneButton.setClickShortcut(KeyCode.ENTER);
doneButton.focus();
}
Expand Down Expand Up @@ -466,12 +466,6 @@ protected void buildFileDownloader() {
}
fileDownloader = new FileDownloader(createResource()) {
private static final long serialVersionUID = 1L;

@Override
public Resource getFileDownloadResource() {
/* recreate the resource so the file name is regenerated */
return createResource();
}
};
fileDownloader.extend(exportFileButton);
}
Expand Down

0 comments on commit ec01a8f

Please sign in to comment.