Ignore:
Timestamp:
03/07/12 23:42:15 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
67b720793d84aa776182caf747fc54a490f33e23
Message:

Added unicode filename support for save/load dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWDlgs.py

    r9671 r10463  
    217217    # EXTRA FUNCTIONS ############################################ 
    218218    def getFileName(self, defaultName, mask, extension): 
    219         fileName = str(QFileDialog.getSaveFileName(self, "Save to..", os.path.join(self.lastSaveDirName, defaultName), mask)) 
     219        fileName = unicode(QFileDialog.getSaveFileName(self, "Save to..", os.path.join(self.lastSaveDirName, defaultName), mask)) 
    220220        if not fileName: return None 
    221221        if not os.path.splitext(fileName)[1][1:]: fileName = fileName + extension 
Note: See TracChangeset for help on using the changeset viewer.