diff options
| author | jvoisin | 2013-10-05 20:46:24 +0100 |
|---|---|---|
| committer | jvoisin | 2013-10-05 20:46:24 +0100 |
| commit | f97b4d88f0254588d11b8760fc6714828af0ef28 (patch) | |
| tree | 3c53c65a86ed931041c18a9f54d0c15d56790d55 /mat-gui | |
| parent | 0f2976458b4baeb418bf9242cbe7dfb96b071440 (diff) | |
mat is now able to check non-writables files
This is an implementaion of this suggestion:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721572
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -279,7 +279,9 @@ non-anonymised) file to output archive')) | |||
| 279 | ''' | 279 | ''' |
| 280 | cf = CFile(filename, add2archive=self.add2archive, | 280 | cf = CFile(filename, add2archive=self.add2archive, |
| 281 | low_pdf_quality=self.pdf_quality) | 281 | low_pdf_quality=self.pdf_quality) |
| 282 | if cf.file: # if the file is supported by the mat | 282 | # if the file is supported by the mat, |
| 283 | # and is writable (for usability's sake). | ||
| 284 | if cf.file and cf.file.is_writable: | ||
| 283 | self.liststore.append([cf, cf.file.basename, _('Unknown')]) | 285 | self.liststore.append([cf, cf.file.basename, _('Unknown')]) |
| 284 | return False | 286 | return False |
| 285 | return True | 287 | return True |
