tminor fix for settings dialog combo - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 03199dcf2e4edf84390496f81ca2819d042fcc2b DIR parent 208e789af4c4d8488b31760730afa8f7d3cc62e5 HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 27 Oct 2012 01:19:27 +0200 minor fix for settings dialog combo Diffstat: M lib/gui_qt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -1297,7 +1297,9 @@ class ElectrumWindow(QMainWindow): grid.addWidget(gui_label , 7, 0) gui_combo = QComboBox() gui_combo.addItems(['Lite', 'Classic', 'Gtk', 'Text']) - gui_combo.setCurrentIndex(gui_combo.findText(self.config.get("gui","classic").capitalize())) + index = gui_combo.findText(self.config.get("gui","classic").capitalize()) + if index==-1: index = 1 + gui_combo.setCurrentIndex(index) grid.addWidget(gui_combo, 7, 1) grid.addWidget(HelpButton(_('Select which GUI mode to use at start up. ')), 7, 2) if not self.config.is_modifiable('gui'):