don't fail when we scroll features window with no row selected
This commit is contained in:
parent
47e0b6d18f
commit
829cc3acb8
|
@ -141,6 +141,8 @@ class FeaturesWindow:
|
||||||
|
|
||||||
def on_features_treeview_cursor_changed(self, widget):
|
def on_features_treeview_cursor_changed(self, widget):
|
||||||
selection = widget.get_selection()
|
selection = widget.get_selection()
|
||||||
|
if not selection:
|
||||||
|
return
|
||||||
path = selection.get_selected_rows()[1][0]
|
path = selection.get_selected_rows()[1][0]
|
||||||
available = self.model[path][1]
|
available = self.model[path][1]
|
||||||
feature = self.model[path][0].decode('utf-8')
|
feature = self.model[path][0].decode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue