Commits

Ronny Pfannschmidt committed 8b865dd

make combobox proxy return none if the active path is -1

not yet unittested

Comments (0)

Files changed (1)

pygtkhelpers/proxy.py

     signal_name = 'changed'
 
     def get_widget_value(self):
+        if not self.active_row:
+            return
         return self.get_row_value(self.active_row)
 
     def set_widget_value(self, value):
 
     @property
     def active_row(self):
+        if self.widget.get_active() == -1:
+            return
         return self.model[self.widget.get_active()]
 
     @property