Browse Source

Merge pull request #1215 in DESIGN/design from ~KERRY/design_10.0:release/10.0 to release/10.0

* commit '84da5ceb617e0b4d471a6d1c8fdeec4d962c1c2f':
  REPORT-23017 无法保存 *.frm文件
feature/big-screen
yaoh.wu 5 years ago
parent
commit
57a9e1895b
  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