gnome-games r7615 - in branches/gnome-2-22/glchess: . src/lib



Author: rancell
Date: Thu Apr 10 05:36:00 2008
New Revision: 7615
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7615&view=rev

Log:
Abort history saving if cannot create history directory (Bug #523076)

Modified:
   branches/gnome-2-22/glchess/ChangeLog
   branches/gnome-2-22/glchess/src/lib/history.py

Modified: branches/gnome-2-22/glchess/src/lib/history.py
==============================================================================
--- branches/gnome-2-22/glchess/src/lib/history.py	(original)
+++ branches/gnome-2-22/glchess/src/lib/history.py	Thu Apr 10 05:36:00 2008
@@ -101,6 +101,10 @@
         """
         if fileName is None:
             fileName = self._getFilename(g)
+            if fileName is None:
+                # FIXME: This should be in a dialog
+                print 'Unable to find location to save to'
+                return
 
         lines = g.getLines()
         try:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]