tried to get filter options popup working (not working yet)

This commit is contained in:
Sebastian Wehling-Benatelli 2014-12-01 12:42:50 +01:00
parent ec1cc26b8c
commit d7a4692afc

View File

@ -239,8 +239,10 @@ class MainWindow(QMainWindow):
filterDlg = FilterOptionsDialog(titleString=fstring,
parent=self,
filterOptions=self.getFilterOptions())
filterDlg.show()
filterDlg.closeEvent.connect(lambda: self.setFilterOptions(filterDlg.getFilterOptions()))
if filterDlg.exec_():
filterOptions = filterDlg.getFilterOptions()
self.setFilterOptions(filterOptions)
def getFilterOptions(self):
return self.filteroptions