suggestion from RafalR on #osm - "nothing to undo, nothing to save"
[potlatch2.git] / potlatch2.mxml
index 521aebbb67131be93c560405c12dc205ac281c32..f878b7caac2171945de43e927500638ee088f682 100755 (executable)
@@ -35,7 +35,8 @@
         <mx:Spacer width="100%"/>
         <mx:Button label="Help" click="new HelpDialog().init();" />
         <mx:Button label="Options" click="new OptionsDialog().init();" /> 
-        <mx:Button label="Save" icon="@Embed('embedded/save.svg')" click="SaveManager.saveChanges();"/>
+        <mx:Button label="Save" icon="@Embed('embedded/save.svg')" click="SaveManager.saveChanges();"
+                       enabled="{MainUndoStack.getGlobalStack().canUndo()}"/>
     </mx:ApplicationControlBar>
     
     <mx:HDividedBox width="100%" height="100%">