Changeset 4156

Show
Ignore:
Timestamp:
06/18/08 14:27:40 (5 months ago)
Author:
ed
Message:

If you attempt to save a new, unchanged design, the Class Designer will now save it. Previously, unchanged designs were not written to disk. Thanks to Nate Lowrie for pointing this out.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesignerFormMixin.py

    r4142 r4156  
    435435    def onSaveDesign(self, evt, useTmp=False): 
    436436        currForm = self.Controller.CurrentForm 
     437        newFIle = False 
    437438        if useTmp: 
    438439            osp = os.path 
     
    452453                    if not self._classFile.endswith(".cdxml"): 
    453454                        self._classFile += ".cdxml" 
     455                newFile = True 
    454456            fname = self._classFile 
    455457         
     
    470472            self.Controller.saveAllProps = False 
    471473 
    472         if not useTmp and (propDictCompare == self._savedState): 
     474        if not useTmp and not newFile and (propDictCompare == self._savedState): 
    473475            return 
    474476