From: Bob J. <jac...@us...> - 2006-02-27 02:45:17
|
Update of /cvsroot/jmri/jmri/jmrix/loconet/downloader In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30559/src/jmri/jmrix/loconet/downloader Modified Files: LoaderPane.java Log Message: make sure that memory is cleared when reading a new file Index: LoaderPane.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrix/loconet/downloader/LoaderPane.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** LoaderPane.java 11 Dec 2005 23:40:16 -0000 1.5 --- LoaderPane.java 27 Feb 2006 02:45:13 -0000 1.6 *************** *** 246,250 **** return; } ! try { inputContent.readHex(new File(inputFileName.getText())); --- 246,258 ---- return; } ! ! // force load, verify disabled in case read fails ! loadButton.setEnabled(false); ! loadButton.setToolTipText(res.getString("TipLoadDisabled")); ! verifyButton.setEnabled(false); ! verifyButton.setToolTipText(res.getString("TipVerifyDisabled")); ! // clear the existing memory contents ! inputContent = new MemoryContents(); ! try { inputContent.readHex(new File(inputFileName.getText())); |