diff options
| author | Selvasundaram <selvam@gluster.com> | 2011-06-17 14:26:47 +0530 |
|---|---|---|
| committer | Selvasundaram <selvam@gluster.com> | 2011-06-17 14:26:47 +0530 |
| commit | b9a9862ceadb128649b24260009557cca4e37d41 (patch) | |
| tree | afaf31ae344a77f710eaf55508be99760c1f8d69 /src/com.gluster.storage.management.gui | |
| parent | 4ef2a99d79ca8c5ce94cc6c2e7cb70a0aea44e8f (diff) | |
| parent | caa39e03f14368dbe0c34a00862480b85d1a6236 (diff) | |
Merge branch 'master' of github.com:gluster/console
Diffstat (limited to 'src/com.gluster.storage.management.gui')
| -rw-r--r-- | src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DownloadVolumeLogsAction.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DownloadVolumeLogsAction.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DownloadVolumeLogsAction.java index 8de8aa2d..0f9ae5c6 100644 --- a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DownloadVolumeLogsAction.java +++ b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/DownloadVolumeLogsAction.java @@ -59,13 +59,13 @@ public class DownloadVolumeLogsAction extends AbstractActionDelegate { FileDialog dialog = new FileDialog(getShell(), SWT.SAVE); dialog.setFilterNames(new String[] {"GZipped Tar (*.tar.gz)"}); dialog.setFilterExtensions(new String[] {"*.tar.gz"}); - dialog.open(); + String filePath = dialog.open(); - String title = "Download Volume Logs [" + volume.getName() + "]"; - String filePath = dialog.getFilterPath() + File.separator + dialog.getFileName(); - if(!filePath.endsWith(".tar.gz")) { - filePath += ".tar.gz"; + if(filePath == null) { + return; } + + String title = "Download Volume Logs [" + volume.getName() + "]"; try { client.downloadLogs(volume.getName(), filePath); showInfoDialog(title, "Volume logs downloaded successfully to [" + filePath + "]"); |
