Skip to content

Commit

Permalink
Minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
msorvoja committed Jan 19, 2024
1 parent cedb871 commit b0928ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nlsgpkgloader/nls_geopackage_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,16 +666,12 @@ def load_layers(self):

def select_deselect_all_layers(self):
if self.municipalities_dialog.selectDeselectAll.isChecked():
items_to_select = []
for value in self.product_types.values():
items = self.municipalities_dialog.productListWidget.findItems(
value, Qt.MatchExactly
)
if items:
items_to_select.append(items[0])

for item in items_to_select:
item.setSelected(True)
items[0].setSelected(True)
else:
self.municipalities_dialog.productListWidget.clearSelection()

Expand Down

0 comments on commit b0928ff

Please sign in to comment.