diff options
| author | jvoisin | 2011-12-23 23:00:02 +0100 |
|---|---|---|
| committer | jvoisin | 2011-12-23 23:00:02 +0100 |
| commit | c2bf35d22d57482288800424bcdc1bb173b81e05 (patch) | |
| tree | f22e5d0a6db0d2c75c0446e1af45e39130c1433f /mat-gui | |
| parent | 6225574709d26422101963d6c344c777fa772ace (diff) | |
Fix a stupid bug in gui !
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -34,7 +34,7 @@ class CFile(object): | |||
| 34 | try: | 34 | try: |
| 35 | self.file = mat.create_class_file(filename, backup, add2archive) | 35 | self.file = mat.create_class_file(filename, backup, add2archive) |
| 36 | except: | 36 | except: |
| 37 | self.file = None | 37 | self.file = False |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | class GUI: | 40 | class GUI: |
| @@ -295,7 +295,7 @@ data loss, but clean more efficiently')) | |||
| 295 | return False | 295 | return False |
| 296 | 296 | ||
| 297 | cf = CFile(filename, self.backup, self.add2archive) | 297 | cf = CFile(filename, self.backup, self.add2archive) |
| 298 | if cf.file is not None: # if the file is supported by the mat | 298 | if cf.file is not False: # if the file is supported by the mat |
| 299 | self.liststore.append([cf, cf.file.basename, | 299 | self.liststore.append([cf, cf.file.basename, |
| 300 | cf.file.mime, _('unknow'), 'None']) | 300 | cf.file.mime, _('unknow'), 'None']) |
| 301 | return False | 301 | return False |
