autosave bug fixed

This commit is contained in:
honfika@gmail.com
2015-03-02 22:46:29 +01:00
parent f8385fad28
commit 128717a5e9
5 changed files with 21 additions and 7 deletions

View File

@@ -2398,8 +2398,6 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
public void reload(boolean forceReload) {
closeTag();
if (Configuration.dumpView.get()) {
dumpViewReload(forceReload);
return;
@@ -2414,6 +2412,10 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
return;
}
if (oldItem != treeItem) {
closeTag();
}
oldItem = treeItem;
// show the preview of the tag when the user clicks to the tagname inside the scripts node, too
@@ -2427,7 +2429,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
//if (flashPanel != null) {
// flashPanel.specialPlayback = false;
//}
folderPreviewPanel.setItems(new ArrayList<TreeItem>());
folderPreviewPanel.setItems(new ArrayList<>());
previewPanel.clear();
stopFlashPlayer();
if (treeItem instanceof ScriptPack) {