Fix replacing unassigned pilot slots.

This commit is contained in:
Dan Albert 2021-05-27 22:51:11 -07:00
parent 1fe3451120
commit 6e41c36a44

View File

@ -50,8 +50,8 @@ class PilotSelector(QComboBox):
self.addItem(self.text_for(pilot), pilot)
if current_pilot is None:
self.setCurrentText("Unassigned")
return
self.setCurrentText(self.text_for(current_pilot))
else:
self.setCurrentText(self.text_for(current_pilot))
self.currentIndexChanged.connect(self.replace_pilot)
def rebuild(self) -> None: