Ignore:
Timestamp:
03/08/12 12:34:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
359355b6e3f6649dbd100ad0730428030d13b649
Message:

Added unicode filename support for the rest of save/load widget dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWMosaicOptimization.py

    r9671 r10466  
    471471            qname = QFileDialog.getSaveFileName(self, "Save the List of Visualizations",  os.path.join(self.lastSaveDirName, filename), "Interesting visualizations (*.mproj)") 
    472472            if qname.isEmpty(): return 
    473             name = str(qname) 
     473            name = unicode(qname) 
    474474        else: 
    475475            name = filename 
     
    498498            name = QFileDialog.getOpenFileName(self, "Open a List of Visualizations", self.lastSaveDirName, "Interesting visualizations (*.mproj)") 
    499499            if name.isEmpty(): return 
    500             name = str(name) 
     500            name = unicode(name) 
    501501 
    502502        dirName, shortFileName = os.path.split(name) 
     
    765765            if qname.isEmpty(): 
    766766                return 
    767             name = str(qname) 
     767            name = unicode(qname) 
    768768        self.lastSaveDirName = os.path.split(name)[0] 
    769769 
     
    784784            name = QFileDialog.getOpenFileName(self, "Load tree", self.lastSaveDirName, "Explorer tree (*.tree)") 
    785785            if name.isEmpty(): return 
    786             name = str(name) 
     786            name = unicode(name) 
    787787 
    788788        self.lastSaveDirName = os.path.split(name)[0] 
Note: See TracChangeset for help on using the changeset viewer.