Changeset 4056

Show
Ignore:
Timestamp:
05/01/2008 10:51:50 AM (2 months ago)
Author:
nate
Message:

For some reason, dEditor._filePath was showing up as an empty string instead of none. Since a valid file path is never an empty string, I modified checkChangesAndContinue to check for the empty string case as well as None.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dEditor.py

    r3975 r4056  
    13411341        except: 
    13421342            fname = None 
    1343         if fname is None
     1343        if fname is None or fname is ""
    13441344            s = "Do you want to save your changes?" 
    13451345        else: