Author: esr
Date: Wed Oct 15 05:03:36 2008
New Revision: 30179

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30179&view=rev
Log:
trackplacer: fix two minor bugs in file selection.

Modified:
    trunk/data/tools/trackplacer

Modified: trunk/data/tools/trackplacer
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=30179&r1=30178&r2=30179&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Wed Oct 15 05:03:36 2008
@@ -229,6 +229,8 @@
         self.filew.cancel_button.connect("clicked", self.selection_canceled)
         if self.default:
             self.filew.set_filename(self.default)
+        self.filew.hide_fileop_buttons()
+        self.filew.complete(".cfg")
         self.filew.run()
 
     def selection_canceled(self, widget):
@@ -604,6 +606,8 @@
         else:
             w = ModalFileSelector(default=self.last_read,
                                   legend="Save track to file")
+            if not w.path:
+                return
             if not w.path.endswith(".cfg"):
                 raise IOException("File must have a .cfg extension.", w.path)
             if w.path != self.last_read and os.path.exists(w.path):


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to