Skip to content

Commit

Permalink
Fix for BetaRavener#34.
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaRavener committed Nov 19, 2017
1 parent 8b18ad2 commit 406b79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def refresh_ports(self):
pref_port = Settings().preferred_port.upper()
for i, port in enumerate(self._connection_scanner.port_list):
self.connectionComboBox.addItem(port)
if port.upper() == pref_port:
if pref_port and port.upper() == pref_port:
selected_port_idx = i

self.connectionComboBox.setCurrentIndex(selected_port_idx)
Expand Down

0 comments on commit 406b79a

Please sign in to comment.