Skip to content

Commit

Permalink
Take filters that don't have a config dialog into account when initia…
Browse files Browse the repository at this point in the history
…lizing it
  • Loading branch information
gacarrillor committed May 21, 2024
1 parent c983799 commit 9fd5d40
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions swiss_locator/gui/config_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ def __init__(self, parent=None):
self.lang.addItem(key, val)
for filter_type in FilterType:
cb = self.findChild(QComboBox, "{}_priority".format(filter_type.value))
cb.addItem(self.tr("Highest"), QgsLocatorFilter.Highest)
cb.addItem(self.tr("High"), QgsLocatorFilter.High)
cb.addItem(self.tr("Medium"), QgsLocatorFilter.Medium)
cb.addItem(self.tr("Low"), QgsLocatorFilter.Low)
cb.addItem(self.tr("Lowest"), QgsLocatorFilter.Lowest)
if cb is not None: # Some filters might not have a config dialog
cb.addItem(self.tr("Highest"), QgsLocatorFilter.Highest)
cb.addItem(self.tr("High"), QgsLocatorFilter.High)
cb.addItem(self.tr("Medium"), QgsLocatorFilter.Medium)
cb.addItem(self.tr("Low"), QgsLocatorFilter.Low)
cb.addItem(self.tr("Lowest"), QgsLocatorFilter.Lowest)

self.crs.addItem(
self.tr("Use map CRS if possible, defaults to CH1903+"), "project"
Expand Down

0 comments on commit 9fd5d40

Please sign in to comment.