Changeset 233:c0ab38ca1546 for src


Ignore:
Timestamp:
06/06/12 17:38:01 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the handling of filenames acquired via file choosers

Location:
src/mlx/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/checklist.py

    r184 r233  
    185185        numSelected = 0
    186186        for path in fileChooser.get_filenames():
     187            path = text2unicode(path)
    187188            numSelected += 1
    188189            if os.path.isfile(path): numFiles += 1
     
    193194        """Called when the Add button is clicked."""
    194195        for path in self._fileChooser.get_filenames():
     196            path = text2unicode(path)
    195197            self._fileListModel.append([os.path.basename(path),
    196198                                        path])
  • src/mlx/gui/flight.py

    r218 r233  
    454454
    455455        if response==RESPONSETYPE_OK:
    456             fileName = dialog.get_filename()
     456            fileName = text2unicode(dialog.get_filename())
    457457            print "Saving", fileName
    458458            try:
     
    495495
    496496        if response==RESPONSETYPE_OK:
    497             fileName = dialog.get_filename()
     497            fileName = text2unicode(dialog.get_filename())
    498498            print "Loading", fileName
    499499            bookedFlight = web.BookedFlight()
  • src/mlx/gui/prefs.py

    r202 r233  
    530530
    531531        if result==RESPONSETYPE_OK:
    532             self._pirepDirectory.set_text(dialog.get_filename())
     532            self._pirepDirectory.set_text(text2unicode(dialog.get_filename()))
    533533       
    534534    def _buildMessages(self):
Note: See TracChangeset for help on using the changeset viewer.