554dfdbc78a6fef06542a907c0073911b8dfc654,Orange/widgets/data/owfile.py,OWFile,select_file,#OWFile#Any#,301

Before Change


    def select_file(self, n):
        if n < len(self.recent_paths):
            recent = self.recent_paths[n]
            del self.recent_paths[n]
            self.recent_paths.insert(0, recent)
        elif n:
            path = self.file_combo.currentText()
            if os.path.exists(path):

After Change



    def select_file(self, n):
        if n < len(self.recent_paths):
            super().select_file(n)
        // TODO: This is weird. Has it remained here from "Browse data sets"
        // or from when this combo was editable? A `n` this large can come from
        // `reload`, but ... how?!
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biolab/orange3
Commit Name: 554dfdbc78a6fef06542a907c0073911b8dfc654
Time: 2016-02-26
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owfile.py
Class Name: OWFile
Method Name: select_file


Project Name: biolab/orange3
Commit Name: 0bd480bc54782abad492e56144d6f580e93a9c6a
Time: 2016-02-26
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/unsupervised/owdistancefile.py
Class Name: OWDistanceFile
Method Name: select_file


Project Name: biolab/orange3
Commit Name: 0ed06e0144cf027791cc1b00d73b865881145ee2
Time: 2015-02-12
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/tests/test_sparse_table.py
Class Name: InterfaceTest
Method Name: test_delete_rows