Fixed Save as does not change file title upon reload

This commit is contained in:
Jindra Petřík
2023-01-09 20:06:56 +01:00
parent a05ecee1b9
commit 37f492fdc0
3 changed files with 9 additions and 2 deletions

View File

@@ -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();
}