Skip to content

Commit

Permalink
Another GUI bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterantypas committed Feb 24, 2022
1 parent 90f357e commit 998a2e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions latest/Apps/maiana-update/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ def renderStation(self):
self.m_BowOffsetText.SetValue('{}'.format(self.stationdata['bowoffset']))

t = self.stationdata['type']
i = MaianaClient.VESSEL_TYPES.index(t)
self.m_VesselTypeChoice.SetSelection(i)
if t in MaianaClient.VESSEL_TYPES:
i = MaianaClient.VESSEL_TYPES.index(t)
self.m_VesselTypeChoice.SetSelection(i)
return True

def validateStationInputs(self):
Expand Down

0 comments on commit 998a2e0

Please sign in to comment.