Skip to content

Commit

Permalink
Merge pull request #648 from kartoza/timlinux/issue620
Browse files Browse the repository at this point in the history
Fix sstatus calcs for unconfigured layers
  • Loading branch information
timlinux authored Nov 29, 2024
2 parents 92d77f0 + d08a39d commit f00fecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geest/core/json_tree_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ def getStatus(self):

data = self.attributes()
analysis_mode = data.get("analysis_mode", "")
qgis_layer_source_key = analysis_mode.replace("use_", "") + "layer_spource"
qgis_layer_shapefile_key = analysis_mode.replace("use_", "") + "shapefile"
qgis_layer_source_key = analysis_mode.replace("use_", "") + "_layer_source"
qgis_layer_shapefile_key = analysis_mode.replace("use_", "") + "_shapefile"
status = ""

# First check if the item weighting is 0, or its parent factor is zero
Expand Down
2 changes: 1 addition & 1 deletion geest/gui/widgets/combined_widgets/point_layer_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
QFileDialog,
)
from qgis.gui import QgsMapLayerComboBox
from qgis.core import QgsMapLayerProxyModel, QgsProject
from qgis.core import QgsMapLayerProxyModel, QgsProject, Qgis
from qgis.PyQt.QtCore import QSettings
from .base_indicator_widget import BaseIndicatorWidget
from geest.utilities import log_message
Expand Down

0 comments on commit f00fecd

Please sign in to comment.