changeset 66:68d4f7499212

Re #176: Bug when saving recently edited army * Make save button available whether army has previously been saved or not (partly for usability and partly to try to trigger bug) Bug seems to occur when opening an army as the first action, adding a unit and saving it, but not when creating a new army as the first action, then loading an old army as the second action, then adding a unit and saving it
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Sep 2009 09:51:53 +0000
parents c4181adba7df
children 75cf9b6608f5
files FrmMain.cs
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/FrmMain.cs	Sat Sep 26 09:33:57 2009 +0000
     1.2 +++ b/FrmMain.cs	Sat Sep 26 09:51:53 2009 +0000
     1.3 @@ -1007,9 +1007,8 @@
     1.4  				undoMenu.MenuItems.AddRange(menuItemsUndo);
     1.5  			}
     1.6  
     1.7 -			bool canSave = loadedFilePath != null;
     1.8 -			bttnSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null && canSave;
     1.9 -			miSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null && canSave;
    1.10 +			bttnSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null;
    1.11 +			miSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null;
    1.12  		}
    1.13  
    1.14  		private void miSaveArmy_Click(object sender, System.EventArgs e)