Browse Source

REPORT-23017 无法保存 *.frm文件

feature/big-screen
kerry 5 years ago
parent
commit
84da5ceb61
  1. 2
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

2
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -668,7 +668,7 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
for (ReportSupportedFileUIProvider provider : providers) { for (ReportSupportedFileUIProvider provider : providers) {
result = result || provider.saveToNewFile(this.editingFILE.getPath(), this); result = result || provider.saveToNewFile(this.editingFILE.getPath(), this);
} }
if(!result && FileExtension.CPT.matchExtension(this.editingFILE.getPath())){ if(!result){
result = result || this.saveFile(); result = result || this.saveFile();
//更换最近打开 //更换最近打开
DesignerEnvManager.getEnvManager().replaceRecentOpenedFilePath(oldName, this.getPath()); DesignerEnvManager.getEnvManager().replaceRecentOpenedFilePath(oldName, this.getPath());

Loading…
Cancel
Save