do not reset finfiter selection

This commit is contained in:
ccppi 2024-08-08 12:14:58 +02:00
parent e0e54adb5d
commit f1baa3f49b

View File

@ -322,6 +322,7 @@ class QueryWindow(QWidget):
self.CFilter.addItem("ALL") self.CFilter.addItem("ALL")
for Canton in Cantons: for Canton in Cantons:
self.CFilter.addItem(Canton) self.CFilter.addItem(Canton)
self.CFilter.currentTextChanged.connect(window.filter_canton) self.CFilter.currentTextChanged.connect(window.filter_canton)
self.CFilter.currentTextChanged.connect(self.setTFilter) self.CFilter.currentTextChanged.connect(self.setTFilter)
@ -343,6 +344,7 @@ class QueryWindow(QWidget):
items = self.getViews() items = self.getViews()
for item in items: for item in items:
self.CShowViews.addItem(item) self.CShowViews.addItem(item)
self.CShowViews.currentTextChanged.connect(self.setView) self.CShowViews.currentTextChanged.connect(self.setView)
self.CShowFineFilters = QComboBox() self.CShowFineFilters = QComboBox()
@ -376,7 +378,6 @@ class QueryWindow(QWidget):
print("Comboshowview:",self.CShowViews.currentText()) print("Comboshowview:",self.CShowViews.currentText())
def queryFineFilers(self): def queryFineFilers(self):
self.CShowFineFilters.clear()
FineFilterItems = self.getFineFilters() FineFilterItems = self.getFineFilters()
for item in FineFilterItems: for item in FineFilterItems:
self.CShowFineFilters.addItem(item) self.CShowFineFilters.addItem(item)