From 28e57935bcbbcbeb3ccbe58accf84947a2d93d16 Mon Sep 17 00:00:00 2001 From: vito Date: Tue, 10 Jul 2018 11:38:26 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-9360=E3=80=9010.0=E4=B8=80=E8=BD=AE?= =?UTF-8?q?=E5=9B=9E=E5=BD=92=E3=80=91=E6=A8=A1=E6=9D=BF=E5=90=8D=E6=9C=89?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7=E6=97=A0=E6=B3=95=E9=A2=84?= =?UTF-8?q?=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer-base/src/com/fr/file/FILEChooserPane.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-base/src/com/fr/file/FILEChooserPane.java b/designer-base/src/com/fr/file/FILEChooserPane.java index 9754596539..34217c460c 100644 --- a/designer-base/src/com/fr/file/FILEChooserPane.java +++ b/designer-base/src/com/fr/file/FILEChooserPane.java @@ -674,7 +674,7 @@ public class FILEChooserPane extends BasicPane { private void saveDialog() { String filename = fileNameTextField.getText(); - if (!filename.endsWith(suffix) && !filename.contains(CoreConstants.DOT)) { + if (!filename.endsWith(suffix)) { ChooseFileFilter chooseFileFilter = (ChooseFileFilter) (postfixComboBox.getSelectedItem()); if (chooseFileFilter != null && StringUtils.isNotEmpty(chooseFileFilter.getExtensionString())) { fileNameTextField.setText(filename + chooseFileFilter.getExtensionString()); @@ -1109,7 +1109,7 @@ public class FILEChooserPane extends BasicPane { ((DefaultListModel) subFileList.getModel()).removeAllElements(); for (int i = 0; i < res_array.length; i++) { if (filter == null || filter.accept(res_array[i])) { - ((DefaultListModel) subFileList.getModel()).addElement( res_array[i]); + ((DefaultListModel) subFileList.getModel()).addElement(res_array[i]); } } String[] name_array = new String[res_array.length];