From: <kev...@us...> - 2012-01-19 13:52:35
|
Revision: 19799 http://jmri.svn.sourceforge.net/jmri/?rev=19799&view=rev Author: kevin-dickerson Date: 2012-01-19 13:52:24 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Fix bug in the removal of a Username from a bean, that resulted in using objects not getting updated to use the systemname. Modified Paths: -------------- trunk/jmri/java/src/jmri/jmrit/beantable/BeanTableDataModel.java Modified: trunk/jmri/java/src/jmri/jmrit/beantable/BeanTableDataModel.java =================================================================== --- trunk/jmri/java/src/jmri/jmrit/beantable/BeanTableDataModel.java 2012-01-19 12:59:56 UTC (rev 19798) +++ trunk/jmri/java/src/jmri/jmrit/beantable/BeanTableDataModel.java 2012-01-19 13:52:24 UTC (rev 19799) @@ -705,7 +705,6 @@ public void removeName(int row, int column){ NamedBean nBean = getBySystemName(sysNameList.get(row)); - nBean.setUserName(null); String msg = java.text.MessageFormat.format(AbstractTableAction.rb .getString("UpdateToSystemName"), new Object[] { getBeanType()}); @@ -715,6 +714,7 @@ if(optionPane == JOptionPane.YES_OPTION){ nbMan.updateBeanFromUserToSystem(nBean); } + nBean.setUserName(null); fireTableRowsUpdated(row, row); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |