1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-28 05:10:40 -07:00

Another GUI bugfix

This commit is contained in:
Peter Antypas 2022-02-24 15:00:15 -08:00
parent 90f357e110
commit 998a2e05ec

View File

@ -166,8 +166,9 @@ class MainWindow(MainFrame):
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):