From c2bf35d22d57482288800424bcdc1bb173b81e05 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 23 Dec 2011 23:00:02 +0100 Subject: Fix a stupid bug in gui ! --- mat-gui | 4 ++-- 1 file 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): try: self.file = mat.create_class_file(filename, backup, add2archive) except: - self.file = None + self.file = False class GUI: @@ -295,7 +295,7 @@ data loss, but clean more efficiently')) return False cf = CFile(filename, self.backup, self.add2archive) - if cf.file is not None: # if the file is supported by the mat + if cf.file is not False: # if the file is supported by the mat self.liststore.append([cf, cf.file.basename, cf.file.mime, _('unknow'), 'None']) return False -- cgit v1.3