trackeditor: fix recent files when saving
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8290 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 88914ad8755c037539d813be1ceb84873826e0c8 Former-commit-id: 563c6ca689afd132d422a20e45f66eeb9b801177
This commit is contained in:
parent
88241deaa4
commit
eed942c439
1 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ public class EditorFrame extends JFrame
|
|||
|
||||
for (int i = 0; i < recentFiles.size(); i++)
|
||||
{
|
||||
if (recentFilesMenu.getItem(i) != null)
|
||||
if (i < recentFilesMenu.getItemCount())
|
||||
{
|
||||
if (recentFilesMenu.getItem(i).getText() != recentFiles.get(i))
|
||||
{
|
||||
|
@ -1820,7 +1820,7 @@ public class EditorFrame extends JFrame
|
|||
}
|
||||
exportAc3d();
|
||||
torcsPlugin.exportTrack();
|
||||
String fileName = Editor.getProperties().getPath() + sep + Editor.getProperties().getHeader().getName() + ".xml";
|
||||
String fileName = Editor.getProperties().getPath() + sep + Editor.getProperties().getHeader().getName() + ".prj.xml";
|
||||
updateRecentFiles(fileName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue