Update of /cvsroot/rails/18xx/rails/ui/swing
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20460/rails/ui/swing
Modified Files:
StatusWindow.java
Log Message:
Permanently enable SAVE
Index: StatusWindow.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/StatusWindow.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** StatusWindow.java 13 Dec 2009 16:39:47 -0000 1.30
--- StatusWindow.java 1 Jan 2010 18:59:20 -0000 1.31
***************
*** 105,108 ****
--- 105,109 ----
saveItem.addActionListener(this);
saveItem.setEnabled(true);
+ saveItem.setPossibleAction(new GameAction(GameAction.SAVE));
fileMenu.add(saveItem);
***************
*** 289,295 ****
for (GameAction na : gameActions) {
switch (na.getMode()) {
! case GameAction.SAVE:
! saveItem.setPossibleAction(na);
! break;
case GameAction.UNDO:
undoItem.setEnabled(true);
--- 290,297 ----
for (GameAction na : gameActions) {
switch (na.getMode()) {
! // SAVE is now enabled by default
! //case GameAction.SAVE:
! // saveItem.setPossibleAction(na);
! // break;
case GameAction.UNDO:
undoItem.setEnabled(true);
|