summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2007-06-13 00:39:06 +0200
committerPatrick Niklaus <marex@opencompositing.org>2007-06-13 00:39:06 +0200
commit8eada25cb5860df4f15669726d34bf2d7b2aaaff (patch)
treef626be676e5b5709cb14be26a469579bbc8f4496
parent83fc6477299667028a3b10e23c788145c68577e9 (diff)
downloadccsm-8eada25cb5860df4f15669726d34bf2d7b2aaaff.tar.gz
ccsm-8eada25cb5860df4f15669726d34bf2d7b2aaaff.tar.bz2
Fixed file filter
-rwxr-xr-xccsm.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/ccsm.in b/ccsm.in
index ea48533..64de0f0 100755
--- a/ccsm.in
+++ b/ccsm.in
@@ -204,12 +204,15 @@ class FileSetting(SettingItem):
if len(self.Setting.Hints) > 1:
if self.Setting.Hints[1] == 'image':
filter.set_name('Images')
- if self.Setting.Hints[2] == 'pngonly':
- filter.add_pattern("*.png")
- if self.Setting.Hints[2] == 'jpgonly':
- filter.add_pattern("*.jpg")
- if self.Setting.Hints[2] == 'svgonly':
- filter.add_pattern("*.svg")
+ if len(self.Setting.Hints) > 2:
+ if self.Setting.Hints[2] == 'pngonly':
+ filter.add_pattern("*.png")
+ if self.Setting.Hints[2] == 'jpgonly':
+ filter.add_pattern("*.jpg")
+ if self.Setting.Hints[2] == 'svgonly':
+ filter.add_pattern("*.svg")
+ else:
+ filter.add_pattern("*.*")
else:
filter.set_name('File')