--- a/ProjectDjango/DjangoDialog.py Fri Mar 22 19:26:49 2013 +0100 +++ b/ProjectDjango/DjangoDialog.py Sat Mar 23 19:41:38 2013 +0100 @@ -250,12 +250,12 @@ self.fileFilters, None) - if not fname.isEmpty(): + if fname: ext = QFileInfo(fname).suffix() - if ext.isEmpty(): - ex = selectedFilter.section('(*', 1, 1).section(')', 0, 0) - if not ex.isEmpty(): - fname.append(ex) + if not ext: + ex = selectedFilter.split("(*")[1].split(")")[0] + if ex: + fname += ex txt = self.resultbox.toPlainText()