Mercurial > fife-parpg
comparison clients/editor/scripts/gui/filemanager.py @ 362:6da97ffede18
Patch by amo-ej1 (Elie de Brauwer):
* Fixes the map editor's save map as functionality
* Close #382
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 18 Oct 2009 20:13:21 +0000 |
parents | ad5818097cd6 |
children | 598547404022 |
comparison
equal
deleted
inserted
replaced
361:f55ddf7fdad5 | 362:6da97ffede18 |
---|---|
126 def saveAs(self): | 126 def saveAs(self): |
127 mapview = self.editor.getActiveMapView() | 127 mapview = self.editor.getActiveMapView() |
128 if mapview is None: | 128 if mapview is None: |
129 print "No map is open" | 129 print "No map is open" |
130 return | 130 return |
131 self.showSaveDialog(self) | 131 self.showSaveDialog() |
132 | 132 |
133 def loadFile(self, path, filename): | 133 def loadFile(self, path, filename): |
134 self.editor.openFile('/'.join([path, filename])) | 134 self.editor.openFile('/'.join([path, filename])) |
135 | 135 |
136 def showMapWizard(self): | 136 def showMapWizard(self): |