use ex_combo.findIndex instead of list.index

This commit is contained in:
ThomasV 2017-01-09 10:32:23 +01:00
parent f50111f15a
commit 34a550864d
1 changed files with 1 additions and 1 deletions

View File

@ -2501,7 +2501,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
block_ex_label = HelpLabel(_('Online Block Explorer') + ':', msg)
block_ex_combo = QComboBox()
block_ex_combo.addItems(block_explorers)
block_ex_combo.setCurrentIndex(block_explorers.index(block_explorer(self.config)))
block_ex_combo.setCurrentIndex(block_ex_combo.findText(block_explorer(self.config)))
def on_be(x):
be_result = block_explorers[block_ex_combo.currentIndex()]
self.config.set_key('block_explorer', be_result, True)