diff --git a/CHANGELOG.md b/CHANGELOG.md index 778395a5c..847a7c10d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file. - CXFORM and GRADRECORD causing NotSerializableException - Scrollbars - Incorrect frame counting +- Save as does not change file title upon reload ## [18.3.0] - 2023-01-01 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java index a6a350cdc..2538e82cf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/OpenableSourceInfo.java @@ -34,7 +34,7 @@ public class OpenableSourceInfo { private String file; - private final String fileTitle; + private String fileTitle; private final boolean detectBundle; @@ -89,6 +89,10 @@ public class OpenableSourceInfo { detectKind(); empty = false; } + + public void setFileTitle(String fileTitle) { + this.fileTitle = fileTitle; + } public String getFileTitle() { return fileTitle; diff --git a/src/com/jpexs/decompiler/flash/gui/Main.java b/src/com/jpexs/decompiler/flash/gui/Main.java index d139e1913..510af016c 100644 --- a/src/com/jpexs/decompiler/flash/gui/Main.java +++ b/src/com/jpexs/decompiler/flash/gui/Main.java @@ -1382,7 +1382,9 @@ public class Main { startSaving(savedFile); if (mode == SaveFileMode.SAVEAS && openable.getOpenableList() != null /*SWF in binarydata has null*/ && !openable.getOpenableList().isBundle()) { openable.setFile(outfile); - openable.getOpenableList().sourceInfo.setFile(outfile); + OpenableSourceInfo sourceInfo = openable.getOpenableList().sourceInfo; + sourceInfo.setFile(outfile); + sourceInfo.setFileTitle(null); if (mainFrame != null && mainFrame.getPanel() != null) { mainFrame.getPanel().refreshPins(); }