Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.4, 0.7.5, and 0.7.6

0.7.4 thgconfig: do not set active row of empty combo

prevents a GTK warning on Windows

Changeset ef5ab6bccf5e

Parent d43e8ebc0490

by Steve Borho

Changes to one file · Browse files at ef5ab6bccf5e Showing diff from parent d43e8ebc0490 Diff from another changeset...

 
531
532
533
534
 
535
536
 
537
538
 
539
540
541
 
531
532
533
 
534
535
 
536
537
 
538
539
540
541
@@ -531,11 +531,11 @@
  if v == curvalue:   currow = len(vlist) - 1   - if curvalue is None: + if curvalue is None and len(vlist):   combo.set_active(0) - elif currow is None: + elif currow is None and curvalue:   combo.child.set_text(toutf(curvalue)) - else: + elif currow:   combo.set_active(currow)     def add_page(self, notebook, tab):