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/Unsupervised/OWNetExplorer.py

    r9671 r10466  
    11061106         
    11071107        filename = QFileDialog.getSaveFileName(self, 'Save Network File', '', 'PAJEK network (*.net)\nGML network (*.gml)') 
     1108        filename = unicode(filename) 
    11081109        if filename: 
    11091110            fn = "" 
    1110             head, tail = os.path.splitext(str(filename)) 
     1111            head, tail = os.path.splitext(filename) 
    11111112            if not tail: 
    11121113                fn = head + ".net" 
    11131114            else: 
    1114                 fn = str(filename) 
     1115                fn = filename 
    11151116             
    11161117            self.optimization.graph.save(fn) 
Note: See TracChangeset for help on using the changeset viewer.