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, filterDlg = FilterOptionsDialog(titleString=fstring,
parent=self, parent=self,
filterOptions=self.getFilterOptions()) filterOptions=self.getFilterOptions())
filterDlg.show() if filterDlg.exec_():
filterDlg.closeEvent.connect(lambda: self.setFilterOptions(filterDlg.getFilterOptions())) filterOptions = filterDlg.getFilterOptions()
self.setFilterOptions(filterOptions)
def getFilterOptions(self): def getFilterOptions(self):
return self.filteroptions return self.filteroptions