opengisch / QgisModelBaker

Create QGIS projects from database schemas or Interlis models
https://opengisch.github.io/QgisModelBaker/
GNU Lesser General Public License v3.0
55 stars 17 forks source link

OID manager does not open when there are no layers in QGIS LayerTree #925

Closed gacarrillor closed 3 months ago

gacarrillor commented 5 months ago

Python exception is thrown:

AttributeError: 'NoneType' object has no attribute 'tool' 
Traceback (most recent call last):
  File "/home/germap/.local/share/QGIS/QGIS3/profiles/test_plugins/python/plugins/QgisModelBaker/qgismodelbaker.py", line 363, in show_tidmanager_dialog
    self.tidmanager_dlg = TIDManagerDialog(
  File "/home/germap/.local/share/QGIS/QGIS3/profiles/test_plugins/python/plugins/QgisModelBaker/gui/tid_manager.py", line 49, in __init__
    self.tid_configurator_panel.setup_dialog(QgsProject.instance())
  File "/home/germap/.local/share/QGIS/QGIS3/profiles/test_plugins/python/plugins/QgisModelBaker/gui/panel/tid_configurator_panel.py", line 71, in setup_dialog
    self._reset_tid_configuration()
  File "/home/germap/.local/share/QGIS/QGIS3/profiles/test_plugins/python/plugins/QgisModelBaker/gui/panel/tid_configurator_panel.py", line 75, in _reset_tid_configuration
    self.set_sequence_panel.set_configuration(self.configuration)
  File "/home/germap/.local/share/QGIS/QGIS3/profiles/test_plugins/python/plugins/QgisModelBaker/gui/panel/set_sequence_panel.py", line 41, in set_configuration
    self.pg_use_super_login.setVisible(self.configuration.tool & DbIliMode.pg)
AttributeError: 'NoneType' object has no attribute 'tool'

Model Baker v7.8.4 QGIS 3.28.x and QGIS master (3.37)