summaryrefslogtreecommitdiff
path: root/mat-gui
diff options
context:
space:
mode:
authorjvoisin2011-12-23 23:00:02 +0100
committerjvoisin2011-12-23 23:00:02 +0100
commitc2bf35d22d57482288800424bcdc1bb173b81e05 (patch)
treef22e5d0a6db0d2c75c0446e1af45e39130c1433f /mat-gui
parent6225574709d26422101963d6c344c777fa772ace (diff)
Fix a stupid bug in gui !
Diffstat (limited to 'mat-gui')
-rwxr-xr-xmat-gui4
1 files changed, 2 insertions, 2 deletions
diff --git a/mat-gui b/mat-gui
index 576c90e..bb123a9 100755
--- a/mat-gui
+++ b/mat-gui
@@ -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
40class GUI: 40class 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