Skip to content
Snippets Groups Projects
Commit e409a047 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix traceback when opening features window. fixes #3714

parent 594313ed
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,10 @@ class FeaturesWindow:
selection = widget.get_selection()
if not selection:
return
path = selection.get_selected_rows()[1][0]
rows = selection.get_selected_rows()[1]
if not rows:
return
path = rows[0]
available = self.model[path][1]
feature = self.model[path][0].decode('utf-8')
text = self.features[feature][1] + '\n'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment