Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
diff FrmMain.cs @ 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 |
line wrap: on
line diff
--- a/FrmMain.cs Sat Sep 26 09:33:57 2009 +0000 +++ b/FrmMain.cs Sat Sep 26 09:51:53 2009 +0000 @@ -1007,9 +1007,8 @@ undoMenu.MenuItems.AddRange(menuItemsUndo); } - bool canSave = loadedFilePath != null; - bttnSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null && canSave; - miSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null && canSave; + bttnSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null; + miSaveArmy.Enabled = commandStack.IsDirty() && CurrentArmy!=null; } private void miSaveArmy_Click(object sender, System.EventArgs e)