mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 12:55:34 +00:00
various small fixes
This commit is contained in:
@@ -439,9 +439,11 @@ public class Main {
|
||||
} catch (OutOfMemoryError ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
View.showMessageDialog(null, "Cannot load SWF file. Out of memory.");
|
||||
continue;
|
||||
} catch (Exception ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
View.showMessageDialog(null, "Cannot load SWF file.");
|
||||
continue;
|
||||
}
|
||||
|
||||
final SWFList swfs1 = swfs;
|
||||
@@ -1106,7 +1108,10 @@ public class Main {
|
||||
|
||||
MainPanel mainPanel = mainFrame.getPanel();
|
||||
TreePath tp = View.getTreePathByPathStrings(mainPanel.tagTree, Arrays.asList(path));
|
||||
mainPanel.setTagTreeSelectedNode((TreeItem) tp.getLastPathComponent());
|
||||
if (tp != null) {
|
||||
// the current view is the Resources view, otherwise tp is null
|
||||
mainPanel.setTagTreeSelectedNode((TreeItem) tp.getLastPathComponent());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user