Skip to content

Commit

Permalink
Merge pull request #205 from niting3c/master
Browse files Browse the repository at this point in the history
#206 Update catchment_analyser_dialog.py
  • Loading branch information
jorgegil authored Apr 28, 2023
2 parents 6b6165e + ec9cd54 commit 7a94268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esstoolkit/catchment_analyser/catchment_analyser_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def setCostFields(self, names):
self.costCombo.addItems(['length'] + names)
else:
fields = ['-----']
self.costCombo.addItem('length')
self.costCombo.addItem(['length'])
self.costCombo.addItems(fields)

def getCostField(self):
Expand Down
5 changes: 4 additions & 1 deletion esstoolkit/network_segmenter/network_segmenter_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ def unloadGUI(self):

def updateLayers(self):
layers = lfh.getLineLayers()
self.dlg.popActiveLayers(layers)
if self.dlg is not None:
self.dlg.popActiveLayers(layers)
else:
print("Warning: 'self.dlg' is not initialized.")

def updateOutputName(self):
if self.dlg.memoryRadioButton.isChecked():
Expand Down

0 comments on commit 7a94268

Please sign in to comment.