dabo Commit
Revision 4056
Date: 2008-05-01 10:51:50 -0700 (Thu, 01 May 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4056
Changed:
U trunk/dabo/ui/uiwx/dEditor.py
Log:
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.
Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py 2008-04-27 18:48:03 UTC (rev 4055)
+++ trunk/dabo/ui/uiwx/dEditor.py 2008-05-01 17:51:50 UTC (rev 4056)
@@ -1340,7 +1340,7 @@
fname = self._fileName
except:
fname = None
- if fname is None:
+ if fname is None or fname is "":
s = "Do you want to save your changes?"
else:
s = "Do you want to save your changes to file '%s'?" %
self._fileName
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]