mirror of
https://github.com/ARUP-CAS/aiscr-qgis-amcr-viewer.git
synced 2026-10-12 22:07:34 +02:00
fix: oprava typ_dat = "pas" na typ_dat = "samostatny_nalez"
This commit is contained in:
1 parent
2fdbb15001
commit
f4ad402f52
2 files changed
+5
-5
No files matched your search
@@ -225,7 +225,7 @@ class AmcrFilterDialog(QDialog):
|
|||||||
|
|
||||||
# Filters valid for Akce
|
# Filters valid for Akce
|
||||||
|
|
||||||
if self.typ_dat in ["pas", "akce"]:
|
if self.typ_dat in ["samostatny_nalez", "akce"]:
|
||||||
self.picker_org = self.setup_picker(
|
self.picker_org = self.setup_picker(
|
||||||
"Organizace",
|
"Organizace",
|
||||||
'organizace',
|
'organizace',
|
||||||
@@ -286,7 +286,7 @@ class AmcrFilterDialog(QDialog):
|
|||||||
self.picker_obdobi = self.setup_picker("Období", 'obdobi', OBDOBI)
|
self.picker_obdobi = self.setup_picker("Období", 'obdobi', OBDOBI)
|
||||||
layout.addWidget(self.picker_obdobi)
|
layout.addWidget(self.picker_obdobi)
|
||||||
|
|
||||||
if self.typ_dat == "pas":
|
if self.typ_dat == "samostatny_nalez":
|
||||||
self.picker_nalez_kategorie = self.setup_picker(
|
self.picker_nalez_kategorie = self.setup_picker(
|
||||||
"Kategorie nálezu",
|
"Kategorie nálezu",
|
||||||
'nalez_kategorie',
|
'nalez_kategorie',
|
||||||
@@ -322,7 +322,7 @@ class AmcrFilterDialog(QDialog):
|
|||||||
)
|
)
|
||||||
layout.addWidget(self.picker_nalezce)
|
layout.addWidget(self.picker_nalezce)
|
||||||
|
|
||||||
if self.typ_dat != "pas":
|
if self.typ_dat != "samostatny_nalez":
|
||||||
self.picker_areal = self.setup_picker("Areál", 'areal', AREAL)
|
self.picker_areal = self.setup_picker("Areál", 'areal', AREAL)
|
||||||
layout.addWidget(self.picker_areal)
|
layout.addWidget(self.picker_areal)
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ class AmcrFilterDialog(QDialog):
|
|||||||
self.lbl_komponenty_warning.setVisible(False)
|
self.lbl_komponenty_warning.setVisible(False)
|
||||||
layout.addWidget(self.lbl_komponenty_warning)
|
layout.addWidget(self.lbl_komponenty_warning)
|
||||||
|
|
||||||
if self.typ_dat != "pas":
|
if self.typ_dat != "samostatny_nalez":
|
||||||
self.chk_komponenty.toggled.connect(
|
self.chk_komponenty.toggled.connect(
|
||||||
self.lbl_komponenty_warning.setVisible
|
self.lbl_komponenty_warning.setVisible
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class AmcrViewer:
|
|||||||
self.action_download_pas = self.add_action(
|
self.action_download_pas = self.add_action(
|
||||||
icon_path=icon_pas_path,
|
icon_path=icon_pas_path,
|
||||||
text=self.tr(u'Stáhnout data samostatných nálezů | AMČR Viewer'),
|
text=self.tr(u'Stáhnout data samostatných nálezů | AMČR Viewer'),
|
||||||
callback=lambda checked=False: self.run_download('pas'),
|
callback=lambda checked=False: self.run_download('samostatny_nalez'),
|
||||||
parent=self.iface.mainWindow(),
|
parent=self.iface.mainWindow(),
|
||||||
add_to_menu=False,
|
add_to_menu=False,
|
||||||
add_to_toolbar=False
|
add_to_toolbar=False
|
||||||
|
|||||||
Reference in new issue
Block a user