Browse Source

Merge pull request #797 in BA/design from ~PLOUGH/design:release to release

* commit '19df32d4b03f0e8fb935f9f2116364e1c6f8a7cb':
  REPORT-1916 模板耗时=》修复初次保存模板时,没有保存ID的bug
master
superman 8 years ago
parent
commit
e4a8cb1d0c
  1. 5
      designer_base/src/com/fr/design/mainframe/JTemplate.java

5
designer_base/src/com/fr/design/mainframe/JTemplate.java

@ -529,12 +529,13 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex
} }
protected boolean saveNewFile(FILE editingFILE, String oldName){ protected boolean saveNewFile(FILE editingFILE, String oldName){
this.editingFILE = editingFILE; // 在保存之前,初始化 templateID
initForCollect(); // 如果保存新模板(新建模板直接保存,或者另存为),则添加 templateID
this.editingFILE = editingFILE;
boolean result = this.saveFile(); boolean result = this.saveFile();
if (result) { if (result) {
DesignerFrameFileDealerPane.getInstance().refresh(); DesignerFrameFileDealerPane.getInstance().refresh();
initForCollect(); // 如果保存新模板(新建模板直接保存,或者另存为),则添加 templateID
collectInfo(); collectInfo();
} }
//更换最近打开 //更换最近打开

Loading…
Cancel
Save