From: Eric P. <th...@us...> - 2010-01-06 18:09:54
|
Update of /cvsroot/sandev/sand/apps/basics/src/org/sandev/basics/util In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv32081 Modified Files: AbstractFormManager.java Log Message: Fixed doActionEdit so it only pushes the UPDATING mode if we are not already in that mode. If a button switches us to editing, then we don't need to push the mode again. Otherwise we end up with a mode stack of LISTING.UPDATING.UPDATING which breaks both cancel and save button processing. Index: AbstractFormManager.java =================================================================== RCS file: /cvsroot/sandev/sand/apps/basics/src/org/sandev/basics/util/AbstractFormManager.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** AbstractFormManager.java 6 Aug 2009 20:50:11 -0000 1.43 --- AbstractFormManager.java 6 Jan 2010 18:09:43 -0000 1.44 *************** *** 467,471 **** { trace(0,"AbstractFormManager:doActionEdit"); ! uifc.pushModeStack(UIFormInitializer.MODESTACK_UPDATING); SandInstanceMessage sim=uifc.getCurrInst(); //// let the app handle this, see method comments. --- 467,473 ---- { trace(0,"AbstractFormManager:doActionEdit"); ! //switch to edit mode if not already done. ! if(uifc.getMode()!=UIFormInitializer.MODESTACK_UPDATING) { ! uifc.pushModeStack(UIFormInitializer.MODESTACK_UPDATING); } SandInstanceMessage sim=uifc.getCurrInst(); //// let the app handle this, see method comments. |