Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #335 from USEPA/disable-pollutant-removal
Browse files Browse the repository at this point in the history
Disable pollutant removal if no pollutant is defined
  • Loading branch information
PaulDudaRESPEC authored Jan 22, 2020
2 parents eaae25e + c95d437 commit 72d258f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/ui/SWMM/frmLID.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,10 @@ def cboLIDType_currentIndexChanged(self, newIndex):
self.tabLID.setTabEnabled(2,True)
self.tabLID.setTabEnabled(3,True)
self.tabLID.setTabEnabled(4,True)
self.tabLID.setTabEnabled(5, True)
if self.pollutant_list:
self.tabLID.setTabEnabled(5, True)
else:
self.tabLID.setTabEnabled(5, False)
self.tabLID.setTabText(4,"Drain")

self.lblSurface5.setVisible(False)
Expand Down Expand Up @@ -558,7 +561,10 @@ def cboLIDType_currentIndexChanged(self, newIndex):
self.tabLID.setTabEnabled(2,False)
self.tabLID.setTabEnabled(3,True)
self.tabLID.setTabEnabled(4,True)
self.tabLID.setTabEnabled(5, True)
if self.pollutant_list:
self.tabLID.setTabEnabled(5, True)
else:
self.tabLID.setTabEnabled(5, False)
self.tabLID.setTabText(4,"Drain")

self.lblSurface5.setVisible(False)
Expand All @@ -578,7 +584,10 @@ def cboLIDType_currentIndexChanged(self, newIndex):
self.tabLID.setTabEnabled(2,True)
self.tabLID.setTabEnabled(3,True)
self.tabLID.setTabEnabled(4,True)
self.tabLID.setTabEnabled(5, True)
if self.pollutant_list:
self.tabLID.setTabEnabled(5, True)
else:
self.tabLID.setTabEnabled(5, False)
self.tabLID.setTabText(4,"Drain")

self.lblSurface5.setVisible(False)
Expand All @@ -598,7 +607,10 @@ def cboLIDType_currentIndexChanged(self, newIndex):
self.tabLID.setTabEnabled(2,False)
self.tabLID.setTabEnabled(3,True)
self.tabLID.setTabEnabled(4,True)
self.tabLID.setTabEnabled(5, True)
if self.pollutant_list:
self.tabLID.setTabEnabled(5, True)
else:
self.tabLID.setTabEnabled(5, False)
self.tabLID.setTabText(4,"Drain")

self.lblStorage1.setText("Barrel Height (in. or mm)")
Expand Down

0 comments on commit 72d258f

Please sign in to comment.